mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-22 18:25:47 +08:00
Remove useless fields in GenerateCasToken()
This commit is contained in:
parent
49a981f787
commit
febb27f765
@ -195,6 +195,9 @@ func GenerateCasToken(userId string, service string) (string, error) {
|
|||||||
|
|
||||||
user, _ = GetMaskedUser(user, false)
|
user, _ = GetMaskedUser(user, false)
|
||||||
|
|
||||||
|
user.WebauthnCredentials = nil
|
||||||
|
user.Properties = nil
|
||||||
|
|
||||||
authenticationSuccess := CasAuthenticationSuccess{
|
authenticationSuccess := CasAuthenticationSuccess{
|
||||||
User: user.Name,
|
User: user.Name,
|
||||||
Attributes: &CasAttributes{
|
Attributes: &CasAttributes{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user