【修改】 学生端登录参数更改
This commit is contained in:
@@ -74,7 +74,7 @@ public class AuthController {
|
||||
@GetMapping("/login_config")
|
||||
@PermitAll
|
||||
@Operation(summary = "学生端判断学生的登录方式")
|
||||
public CommonResult<ConfigDO> getLoginConfigDO(@RequestBody @Valid AuthLoginReqVO reqVO) {
|
||||
public CommonResult<ConfigDO> getLoginConfigDO() {
|
||||
// 在判断学生的登录方式
|
||||
ConfigDO config = configService.getConfigByKey("student_login");
|
||||
return success(config);
|
||||
|
@@ -142,7 +142,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
|
||||
String type = config.getValue();
|
||||
if (type.equals("1")) {
|
||||
// 考生账号+姓名登录
|
||||
user = authenticateByNickName(reqVO.getUsername(), reqVO.getPassword());
|
||||
user = authenticateByNickName(reqVO.getUsername(), reqVO.getNickname());
|
||||
} else if (type.equals("2")) {
|
||||
// 考生账号+密码登录
|
||||
user = authenticate(reqVO.getUsername(), reqVO.getPassword());
|
||||
|
Reference in New Issue
Block a user