Commit b65e728c authored by Quxl's avatar Quxl

x

parent 9f5a9918
......@@ -149,7 +149,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
String salt = Common.getGenerateString(6);
String encodeNewPassword = Common.encodePassword(newPassword, salt);
Integer count = jdbcTemplate.executeUpdate("update fc_admin set salt = ?, password = ? where adminid = ?", salt, encodeNewPassword, admin.getAdminid());
return count.intValue() == 1;
return count.compareTo(1) == 0;
}
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment