mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-24 06:54:03 +03:00
Redirect after getting magic link.
This commit is contained in:
parent
4d7039b50e
commit
8b7fba507a
@ -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
|
||||
)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user