Skip to content

Commit c052d05

Browse files
author
quding
committed
remove password
1 parent cf06116 commit c052d05

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Spring-Security-Demo/src/main/java/cn/mrdear/servuity/dto/TokenUserAuthentication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public Collection<? extends GrantedAuthority> getAuthorities() {
3333

3434
@Override
3535
public Object getCredentials() {
36-
return userDTO.getPassword();
36+
return "";
3737
}
3838

3939
@Override

Spring-Security-Demo/src/main/java/cn/mrdear/servuity/dto/TokenUserDTO.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ public class TokenUserDTO {
1515

1616
private String username;
1717

18-
private String password;
19-
2018
private String email;
2119

2220
private String avatar;

0 commit comments

Comments
 (0)