Redirect after getting magic link.

This commit is contained in:
Dillon Kearns 2022-08-14 08:16:35 -07:00
parent 4d7039b50e
commit 8b7fba507a

View File

@ -25,6 +25,7 @@ import Pages.Msg
import Pages.PageUrl exposing (PageUrl)
import Pages.Url
import Request.Hasura
import Route
import RouteBuilder exposing (StatefulRoute, StatelessRoute, StaticPayload)
import SendGrid
import Server.Request as Request
@ -245,9 +246,8 @@ data routeParams =
(\(Uuid sessionId) ->
( okSessionThing
|> Session.insert "sessionId" sessionId
, Just confirmedEmail
|> Data
|> Server.Response.render
, Route.Visibility__ { visibility = Nothing }
|> Route.redirectTo
)
)