登录验证注释
This commit is contained in:
parent
a9d8c01806
commit
7819e3b143
@ -64,10 +64,10 @@ public class SysLoginController extends AbstractController {
|
||||
*/
|
||||
@PostMapping("/sys/login")
|
||||
public Map<String, Object> login(@RequestBody SysLoginForm form)throws IOException {
|
||||
boolean captcha = sysCaptchaService.validate(form.getUuid(), form.getCaptcha());
|
||||
if(!captcha){
|
||||
return R.error("验证码不正确");
|
||||
}
|
||||
// boolean captcha = sysCaptchaService.validate(form.getUuid(), form.getCaptcha());
|
||||
// if(!captcha){
|
||||
// return R.error("验证码不正确");
|
||||
// }
|
||||
|
||||
//用户信息
|
||||
SysUserEntity user = sysUserService.queryByUserName(form.getUsername());
|
||||
|
Loading…
Reference in New Issue
Block a user