登录验证注释
This commit is contained in:
parent
a9d8c01806
commit
7819e3b143
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user