File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
src/test/java/org/owasp/esapi/reference Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -163,14 +163,15 @@ public void testChangePassword() throws Exception {
163
163
} catch ( AuthenticationException e ) {
164
164
// expected
165
165
}
166
- // Invalid test until we implement an actual password history!
167
- // try {
168
- // // Test for GitHub issue 288
169
- // user.changePassword(password2, oldPassword, oldPassword);
170
- // fail("Shouldn't be able to reuse original (initial) password.");
171
- // } catch( AuthenticationException e ) {
172
- // // expected
173
- // }
166
+ try {
167
+ // Test for GitHub issue 288; note that GitHub issue 287
168
+ // needed fixed first, because that's what made the password
169
+ // history work!
170
+ user .changePassword (password2 , oldPassword , oldPassword );
171
+ fail ("Shouldn't be able to reuse original (initial) password." );
172
+ } catch ( AuthenticationException e ) {
173
+ // expected
174
+ }
174
175
assertTrue (user .verifyPassword (password2 ));
175
176
assertFalse (user .verifyPassword ("badpass" ));
176
177
}
You can’t perform that action at this time.
0 commit comments