NIHVIVO-2601 Fix admin login controller so it correctly handles forced password changes.
This commit is contained in:
parent
7fed5babcf
commit
d18806f2df
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue