Skip to content

Commit a5aa694

Browse files
committed
Security
1 parent 51ef540 commit a5aa694

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

security/src/main/java/org/ylc/note/security/entity/SecurityUserDetails.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,33 @@ public String getUsername() {
5050
return this.username;
5151
}
5252

53+
/**
54+
* 是否账户未过期
55+
*/
5356
@Override
5457
public boolean isAccountNonExpired() {
5558
return true;
5659
}
5760

61+
/**
62+
* 是否账户未锁定
63+
*/
5864
@Override
5965
public boolean isAccountNonLocked() {
6066
return true;
6167
}
6268

69+
/**
70+
* 是否账户未过期
71+
*/
6372
@Override
6473
public boolean isCredentialsNonExpired() {
6574
return true;
6675
}
6776

77+
/**
78+
* 是否可用
79+
*/
6880
@Override
6981
public boolean isEnabled() {
7082
return true;

0 commit comments

Comments
 (0)