Fixed the user experience
This commit is contained in:
parent
fcaf315549
commit
fea33a456a
5 changed files with 12 additions and 6 deletions
|
@ -61,7 +61,7 @@
|
|||
<dependency>
|
||||
<groupId>org.vivoweb</groupId>
|
||||
<artifactId>vitro-dependencies</artifactId>
|
||||
<version>2.0.0-SNAPSHOT</version>
|
||||
<version>1.10.0-SNAPSHOT</version>
|
||||
<type>pom</type>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
@ -356,6 +357,8 @@ public class Authenticate extends VitroHttpServlet {
|
|||
else {
|
||||
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());
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
|
||||
<groupId>org.vivoweb</groupId>
|
||||
<artifactId>vitro-webapp</artifactId>
|
||||
<version>2.0.0-SNAPSHOT</version>
|
||||
<version>1.10.0-SNAPSHOT</version>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<parent>
|
||||
<groupId>org.vivoweb</groupId>
|
||||
<artifactId>vitro-project</artifactId>
|
||||
<version>2.0.0-SNAPSHOT</version>
|
||||
<version>1.10.0-SNAPSHOT</version>
|
||||
<relativePath>..</relativePath>
|
||||
</parent>
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
|||
<dependency>
|
||||
<groupId>org.vivoweb</groupId>
|
||||
<artifactId>vitro-api</artifactId>
|
||||
<version>2.0.0-SNAPSHOT</version>
|
||||
<version>1.10.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
|
@ -123,6 +123,8 @@ error_no_new_password = Please enter your new password.
|
|||
error_passwords_dont_match = The passwords entered do not match.
|
||||
error_password_length = Please enter a password between {0} and {1} characters in length.
|
||||
error_previous_password = Your new password cannot match the current one.
|
||||
password_system_has_changed = Our password system has been upgraded to make it more secure. \
|
||||
Please enter a new password.
|
||||
|
||||
search_accounts_button = Search accounts
|
||||
accounts_search_results = Search results for
|
||||
|
|
Loading…
Add table
Reference in a new issue