Skip to content

Commit b49ac21

Browse files
committed
UserAuthenticationI implemented to address clean architecture violation
1 parent 0a3378b commit b49ac21

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/java/User.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import java.io.Serializable;
22
import java.util.ArrayList;
33

4-
public abstract class User implements Serializable, Changeable{
4+
public abstract class User implements Serializable, Changeable, UserAuthenticationI {
55
protected String username;
66
protected String password;
77
protected String email;
@@ -28,6 +28,7 @@ private String getPassword(){
2828
// return this.chats;
2929
// }
3030

31+
@Override
3132
public Boolean PasswordMatch(String attempt){
3233
return (this.getPassword().equals(attempt));
3334
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
public interface UserAuthenticationI {
2+
Boolean PasswordMatch(String attempt);
3+
}

0 commit comments

Comments
 (0)