Redirect applicants to verify their emails
This commit is contained in:
parent
3d3b5d6bd2
commit
8792b9dde6
|
@ -80,7 +80,7 @@ postApplyR :: (YesodAuth DataIdClient, AuthId DataIdClient ~ Text) => Handler Ht
|
||||||
postApplyR = do
|
postApplyR = do
|
||||||
((result, widget), enctype) <- runFormPost applyForm
|
((result, widget), enctype) <- runFormPost applyForm
|
||||||
case result of
|
case result of
|
||||||
FormSuccess application -> apiRequest @Apply False application >>= \x ->
|
FormSuccess application -> apiRequest @Apply False application >> redirect VerifyEmailR
|
||||||
redirect $ ProfileR $ let ApplyApply {..} = apply x in id
|
-- TODO: Automatically log in
|
||||||
_ -> do
|
_ -> do
|
||||||
defaultLayout $ applyW (widget, enctype)
|
defaultLayout $ applyW (widget, enctype)
|
||||||
|
|
Loading…
Reference in New Issue