Fixed the user experience
This commit is contained in:
parent
fcaf315549
commit
fea33a456a
5 changed files with 12 additions and 6 deletions
|
@ -23,6 +23,7 @@ import javax.servlet.http.HttpServletRequest;
|
|||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import com.mysql.cj.api.x.core.Warning;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
|
@ -354,8 +355,10 @@ public class Authenticate extends VitroHttpServlet {
|
|||
return;
|
||||
}
|
||||
else {
|
||||
user.setPasswordChangeRequired(true);
|
||||
user.setMd5Password("");
|
||||
user.setPasswordChangeRequired(true);
|
||||
user.setMd5Password("");
|
||||
bean.setMessage(request, ERROR,
|
||||
"password_system_has_changed");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -83,6 +83,7 @@ public class UserAccountsSelectorTest extends AbstractTestClass {
|
|||
assertEquals("lastName", "Caruso", acct.getLastName());
|
||||
assertEquals("md5password", "garbage", acct.getMd5Password());
|
||||
assertEquals("argon2password", "betterGarbage", acct.getArgon2Password());
|
||||
assertEquals("expires", 1100234965897L, acct.getPasswordLinkExpires());
|
||||
assertEquals("loginCount", 50, acct.getLoginCount());
|
||||
assertEquals("lastLogin", 1020304050607080L, acct.getLastLoginTime());
|
||||
assertEquals("status", UserAccount.Status.ACTIVE, acct.getStatus());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue