Fix OTP authentication for external accounts

This commit is contained in:
eikek
2021-09-06 01:07:31 +02:00
parent 8158e36d40
commit 468ba90158
12 changed files with 95 additions and 46 deletions

View File

@ -83,10 +83,7 @@ init key url flags_ settings =
Page.CollectiveSettings.Data.init flags
( loginm, loginc ) =
Page.Login.Data.init flags
(Page.loginPageReferrer page
|> Tuple.second
)
Page.Login.Data.init flags (Page.loginPageReferrer page)
homeViewMode =
if settings.searchMenuVisible then

View File

@ -158,7 +158,7 @@ updateWithSub msg model =
LogoutResp _ ->
( { model | loginModel = Page.Login.Data.emptyModel }
, Page.goto (LoginPage ( Nothing, False ))
, Page.goto (LoginPage Page.emptyLoginData)
, Sub.none
)