登录验证注释

This commit is contained in:
王玺涛 2020-07-08 09:51:45 +08:00
parent a9d8c01806
commit 7819e3b143

View File

@ -64,10 +64,10 @@ public class SysLoginController extends AbstractController {
*/ */
@PostMapping("/sys/login") @PostMapping("/sys/login")
public Map<String, Object> login(@RequestBody SysLoginForm form)throws IOException { public Map<String, Object> login(@RequestBody SysLoginForm form)throws IOException {
boolean captcha = sysCaptchaService.validate(form.getUuid(), form.getCaptcha()); // boolean captcha = sysCaptchaService.validate(form.getUuid(), form.getCaptcha());
if(!captcha){ // if(!captcha){
return R.error("验证码不正确"); // return R.error("验证码不正确");
} // }
//用户信息 //用户信息
SysUserEntity user = sysUserService.queryByUserName(form.getUsername()); SysUserEntity user = sysUserService.queryByUserName(form.getUsername());