mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +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)
|
return "", fmt.Errorf("The user: %s doesn't exist", userId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
user, _ = GetMaskedUser(user, false)
|
||||||
|
|
||||||
authenticationSuccess := CasAuthenticationSuccess{
|
authenticationSuccess := CasAuthenticationSuccess{
|
||||||
User: user.Name,
|
User: user.Name,
|
||||||
Attributes: &CasAttributes{
|
Attributes: &CasAttributes{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user