From 15e6056540a42d9eb6000e9a0adf8cf0e26ee2ba Mon Sep 17 00:00:00 2001 From: Piotr Kozimor Date: Tue, 20 Apr 2021 07:45:04 +0200 Subject: [PATCH] Fix completed session stage for LoginTypeEmailIdentity --- clientapi/routing/register.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientapi/routing/register.go b/clientapi/routing/register.go index d001aca87..439858673 100644 --- a/clientapi/routing/register.go +++ b/clientapi/routing/register.go @@ -769,7 +769,7 @@ func handleRegistrationFlow( if err := validateEmailIdentity(req.Context(), r.Auth.ThreePidCreds); err != nil { return *err } - AddCompletedSessionStage(sessionID, authtypes.LoginTypeApplicationService) + AddCompletedSessionStage(sessionID, authtypes.LoginTypeEmailIdentity) case "": // An empty auth type means that we want to fetch the available