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
02e828b9
Commit
02e828b9
authored
Feb 24, 2025
by
EDY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
bbb5be16
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
BaseCustomInfoController.java
...oyi/web/controller/business/BaseCustomInfoController.java
+1
-0
SysLoginController.java
...a/com/ruoyi/web/controller/system/SysLoginController.java
+1
-2
SysLoginService.java
...java/com/ruoyi/framework/web/service/SysLoginService.java
+3
-5
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/BaseCustomInfoController.java
View file @
02e828b9
...
@@ -78,6 +78,7 @@ public class BaseCustomInfoController extends BaseController
...
@@ -78,6 +78,7 @@ public class BaseCustomInfoController extends BaseController
@PostMapping
@PostMapping
public
AjaxResult
add
(
@RequestBody
BaseCustomInfo
baseCustomInfo
)
public
AjaxResult
add
(
@RequestBody
BaseCustomInfo
baseCustomInfo
)
{
{
baseCustomInfo
.
setFzr
(
getUsername
());
return
toAjax
(
baseCustomInfoService
.
insertBaseCustomInfo
(
baseCustomInfo
));
return
toAjax
(
baseCustomInfoService
.
insertBaseCustomInfo
(
baseCustomInfo
));
}
}
...
...
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java
View file @
02e828b9
...
@@ -50,8 +50,7 @@ public class SysLoginController
...
@@ -50,8 +50,7 @@ public class SysLoginController
{
{
AjaxResult
ajax
=
AjaxResult
.
success
();
AjaxResult
ajax
=
AjaxResult
.
success
();
// 生成令牌
// 生成令牌
String
token
=
loginService
.
login
(
loginBody
.
getUsername
(),
loginBody
.
getPassword
(),
loginBody
.
getCode
(),
String
token
=
loginService
.
login
(
loginBody
.
getUsername
(),
loginBody
.
getPassword
());
loginBody
.
getUuid
());
ajax
.
put
(
Constants
.
TOKEN
,
token
);
ajax
.
put
(
Constants
.
TOKEN
,
token
);
return
ajax
;
return
ajax
;
}
}
...
...
ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java
View file @
02e828b9
...
@@ -57,14 +57,12 @@ public class SysLoginService
...
@@ -57,14 +57,12 @@ public class SysLoginService
*
*
* @param username 用户名
* @param username 用户名
* @param password 密码
* @param password 密码
* @param code 验证码
* @param uuid 唯一标识
* @return 结果
* @return 结果
*/
*/
public
String
login
(
String
username
,
String
password
,
String
code
,
String
uuid
)
public
String
login
(
String
username
,
String
password
)
{
{
// 验证码校验
//
// 验证码校验
validateCaptcha
(
username
,
code
,
uuid
);
//
validateCaptcha(username, code, uuid);
// 登录前置校验
// 登录前置校验
loginPreCheck
(
username
,
password
);
loginPreCheck
(
username
,
password
);
// 用户验证
// 用户验证
...
...
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