Skip to content

Commit 65cadb3

Browse files
committed
Added PasswordMatch, which is used for making sure change to account feature is authorized while not violating the privacy aspect.
1 parent 4ac16ea commit 65cadb3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/User.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ private String getPassword(){
2020
return this.password;
2121
}
2222

23+
public Boolean PasswordMatch(String attempt){
24+
return (this.getPassword().equals(attempt));
25+
}
26+
2327
@Override
2428
// from Changeable
2529
public void changeFeature(String feature, String newFeature){

0 commit comments

Comments
 (0)