Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ry-crm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
田光明
ry-crm
Commits
13db88aa
Commit
13db88aa
authored
Aug 06, 2025
by
王超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
bea46256
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
SysLoginController.java
...a/com/ruoyi/web/controller/system/SysLoginController.java
+4
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java
View file @
13db88aa
...
...
@@ -2,6 +2,8 @@ package com.ruoyi.web.controller.system;
import
java.util.List
;
import
java.util.Set
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
...
@@ -25,6 +27,7 @@ import com.ruoyi.system.service.ISysMenuService;
* @author ruoyi
*/
@RestController
@Slf4j
public
class
SysLoginController
{
@Autowired
...
...
@@ -52,6 +55,7 @@ public class SysLoginController
// 生成令牌
String
token
=
loginService
.
login
(
loginBody
.
getUsername
(),
loginBody
.
getPassword
());
ajax
.
put
(
Constants
.
TOKEN
,
token
);
log
.
info
(
"====login {} {}"
,
loginBody
.
getUsername
(),
loginBody
.
getPassword
());
return
ajax
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment