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
|
||||
((result, widget), enctype) <- runFormPost applyForm
|
||||
case result of
|
||||
FormSuccess application -> apiRequest @Apply False application >>= \x ->
|
||||
redirect $ ProfileR $ let ApplyApply {..} = apply x in id
|
||||
FormSuccess application -> apiRequest @Apply False application >> redirect VerifyEmailR
|
||||
-- TODO: Automatically log in
|
||||
_ -> do
|
||||
defaultLayout $ applyW (widget, enctype)
|
||||
|
|
Loading…
Reference in New Issue