mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-22 18:25:47 +08:00
Mask user in GenerateCasToken()
This commit is contained in:
parent
3c2fd574a6
commit
b7cd604e56
@ -193,6 +193,8 @@ func GenerateCasToken(userId string, service string) (string, error) {
|
||||
return "", fmt.Errorf("The user: %s doesn't exist", userId)
|
||||
}
|
||||
|
||||
user, _ = GetMaskedUser(user, false)
|
||||
|
||||
authenticationSuccess := CasAuthenticationSuccess{
|
||||
User: user.Name,
|
||||
Attributes: &CasAttributes{
|
||||
|
Loading…
x
Reference in New Issue
Block a user