Skip to content

Commit a991258

Browse files
Username updated to email for autherization
1 parent 29dfc9a commit a991258

File tree

1 file changed

+1
-5
lines changed
  • src/main/java/org/spacehub/entities/User

1 file changed

+1
-5
lines changed

src/main/java/org/spacehub/entities/User/User.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,9 @@ public String getPassword() {
9090

9191
@Override
9292
public String getUsername() {
93-
if (this.username != null && !this.username.isBlank()) {
94-
return this.username;
95-
}
96-
return "Enter your username";
93+
return email;
9794
}
9895

99-
10096
@Override
10197
public boolean isAccountNonLocked() {
10298
return !locked;

0 commit comments

Comments
 (0)