master
wangning 7 years ago
parent 25eb4cc11b
commit 57b2dba12b

@ -148,12 +148,12 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati
private void validLoginInfo(LoginInfo loginInfo, JSONObject account) {
if (account == null) {
throw new BadRequestException(LocaleSupport.localeMessage("login.error.password"));
throw new BadRequestException(LocaleSupport.localeMessage("error.login.password"));
}
String salt = account.getString("salt");
String pwdHash = loginInfo.getPasswordHashed(salt);
if (!StringUtils.equals(pwdHash, account.getString("password_hash"))) {
throw new BadRequestException(LocaleSupport.localeMessage("login.error.password"));
throw new BadRequestException(LocaleSupport.localeMessage("error.login.password"));
}
}

Loading…
Cancel
Save