From ca5632031c868dfaee4504047b27fe3fbdac4392 Mon Sep 17 00:00:00 2001 From: l2vator Date: Tue, 6 Aug 2024 20:58:38 +0900 Subject: [PATCH] =?UTF-8?q?[=EC=98=A4=EC=8A=B9=EC=84=9D]=20whitelist=20key?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD=20-=20Email=20->=20Alias?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- session/common.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/session/common.go b/session/common.go index 9a83327..72864fb 100644 --- a/session/common.go +++ b/session/common.go @@ -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"], } }