佬,这段是不是写混了,解密用的手机号,但是加密用的密码 //如果用户存在且手机接收的验证码和传来的验证码对上了就返回userId和长短token if (user != null && passwordEncoder.matches(phoneNumberLoginRequest.getPhoneNumber(),user.getPhoneNumber()) &&code.equals(phoneNumberLoginRequest.getCaptcha()) ) { map.put(USERIDENTITY, user.getId()); } //不存在则直接创建一个新用户 if(user ==null){ User newUser =phoneNumberLoginRequest.toEntity().setCover("http://localhost:9090/user-cover/default.png"); passwordEncoder.encode(newUser.getPassword());
点赞 1

相关推荐

每晚夜里独自颤抖:你cet6就cet6,cet4就cet4,你写个cet证书等是什么意思。专业技能快赶上项目行数,你做的这2个项目哪里能提现你有这么多技能呢
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务