Rewrite lesson to be self-contained and not depend on the core of WebGoat for fetching users

Split the assignment into 2 assignments
This commit is contained in:
Nanne Baars
2021-11-04 17:04:23 +01:00
committed by Nanne Baars
parent 9e6ed11aa7
commit 3ad51e6d6b
21 changed files with 409 additions and 331 deletions

View File

@ -34,15 +34,14 @@ public class WebGoatUser implements UserDetails {
}
public WebGoatUser(String username, String password) {
this.username = username;
this.password = password;
createUser();
this(username, password, ROLE_USER);
}
public WebGoatUser(String username, String password, String role) {
this.username = username;
this.password = password;
this.role = role;
createUser();
}