[오승석] whitelist key 변경

- Email -> Alias
This commit is contained in:
2024-08-06 20:58:38 +09:00
parent 38c5e05d4c
commit ca5632031c

View File

@ -19,7 +19,7 @@ type Authorization struct {
// by authorization provider
Platform string `bson:"p" json:"p"`
Uid string `bson:"u" json:"u"`
Email string `bson:"em" json:"em"`
Alias string `bson:"al" json:"al"`
}
func (auth *Authorization) ToStrings() []string {
@ -27,7 +27,7 @@ func (auth *Authorization) ToStrings() []string {
"a", auth.Account.Hex(),
"p", auth.Platform,
"u", auth.Uid,
"em", auth.Email,
"al", auth.Alias,
"inv", auth.invalidated,
}
}
@ -42,7 +42,7 @@ func MakeAuthrizationFromStringMap(src map[string]string) Authorization {
Account: accid,
Platform: src["p"],
Uid: src["u"],
Email: src["em"],
Alias: src["al"],
invalidated: src["inv"],
}
}