NIHVIVO-2601 Fix admin login controller so it correctly handles forced password changes.

This commit is contained in:
j2blake 2011-05-11 16:55:53 +00:00
parent 7fed5babcf
commit d18806f2df

View file

@ -97,7 +97,7 @@ public class AdminLoginController extends FreemarkerHttpServlet {
if (auth.isCurrentPassword(username, password)) { if (auth.isCurrentPassword(username, password)) {
auth.recordLoginAgainstUserAccount(username, INTERNAL); auth.recordLoginAgainstUserAccount(username, INTERNAL);
if (auth.isPasswordChangeRequired(username)) { if (!newPassword.isEmpty()) {
auth.recordNewPassword(username, newPassword); auth.recordNewPassword(username, newPassword);
} }