From f8557078cc316a3c6348c6f541723061d2de7ce2 Mon Sep 17 00:00:00 2001 From: l2vator Date: Mon, 1 Apr 2024 14:38:32 +0900 Subject: [PATCH] =?UTF-8?q?[=EC=98=A4=EC=8A=B9=EC=84=9D]=20firebase?= =?UTF-8?q?=EB=A5=BC=20=ED=86=B5=ED=95=9C=20guset=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=EC=8B=9C=20email=EC=97=90=20@guest.flag=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/service.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/service.go b/core/service.go index e0e30e3..34c1d53 100644 --- a/core/service.go +++ b/core/service.go @@ -660,6 +660,9 @@ func (sh *serviceDescription) authorize(w http.ResponseWriter, r *http.Request) } if authtype != newType || uid != newId { + if authtype == "firebase" && newType == "guest" { + email = fmt.Sprintf("%s@guest.flag", uid) + } authtype = newType uid = newId }