mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Use static resources.
This commit is contained in:
@ -96,6 +96,10 @@ func GetUser(id string) *User {
|
||||
}
|
||||
|
||||
func GetMaskedUser(user *User) *User {
|
||||
if user == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
if user.Password != "" {
|
||||
user.Password = "***"
|
||||
}
|
||||
|
Reference in New Issue
Block a user