We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4365493 commit fb71168Copy full SHA for fb71168
src/test/java/org/owasp/esapi/reference/UserTest.java
@@ -163,6 +163,13 @@ public void testChangePassword() throws Exception {
163
} catch( AuthenticationException e ) {
164
// expected
165
}
166
+ try {
167
+ // Test for GitHub issue 288
168
+ user.changePassword(password2, oldPassword, oldPassword);
169
+ fail("Shouldn't be able to reuse original (initial) password.")
170
+ } catch( AuthenticationException e ) {
171
+ // expected
172
+ }
173
assertTrue(user.verifyPassword(password2));
174
assertFalse(user.verifyPassword("badpass"));
175
0 commit comments