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