|
@ -319,12 +319,12 @@ public class LoginController extends BaseController {
|
|
|
if (!StringUtils.equalsIgnoreCase(captchaToken, ct)) {
|
|
|
return error(-1, "图形验证码错误!");
|
|
|
}
|
|
|
idcard = RSAUtils.getInstance(doctorService).decryptString(idcard);
|
|
|
idcard = URLDecoder.decode(idcard, "UTF-8");
|
|
|
idcard = StringUtils.reverse(idcard);
|
|
|
newpwd = RSAUtils.getInstance(doctorService).decryptString(newpwd);
|
|
|
newpwd = URLDecoder.decode(newpwd, "UTF-8");
|
|
|
newpwd = StringUtils.reverse(newpwd);
|
|
|
// idcard = RSAUtils.getInstance(doctorService).decryptString(idcard);
|
|
|
// idcard = URLDecoder.decode(idcard, "UTF-8");
|
|
|
// idcard = StringUtils.reverse(idcard);
|
|
|
// newpwd = RSAUtils.getInstance(doctorService).decryptString(newpwd);
|
|
|
// newpwd = URLDecoder.decode(newpwd, "UTF-8");
|
|
|
// newpwd = StringUtils.reverse(newpwd);
|
|
|
// 对验证码进行校验
|
|
|
int res = smsService.check(mobile, type, captcha);
|
|
|
switch (res) {
|
|
@ -341,7 +341,8 @@ public class LoginController extends BaseController {
|
|
|
if (doctor == null) {
|
|
|
return error(-1, "操作失败:此用户未注册");
|
|
|
} else {
|
|
|
doctor.setPassword(newpwd);
|
|
|
String password=MD5.GetMD5Code(newpwd+doctor.getSalt());
|
|
|
doctor.setPassword(password);
|
|
|
doctorService.updateDoctorPwd(doctor);
|
|
|
return success("操作成功!");
|
|
|
}
|