mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-09 11:32:55 +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