Redirect dynamically in GoogleEmail2 login page

This commit is contained in:
Paul Rouse 2014-10-21 09:09:34 +01:00
parent f49ddc8047
commit fbb0313589

View File

@ -115,8 +115,7 @@ authGoogleEmail clientID clientSecret =
`mappend` renderQueryText True qs
login tm = do
url <- getDest tm
[whamlet|<a href=#{url}>_{Msg.LoginGoogle}|]
[whamlet|<a href=@{tm forwardUrl}>_{Msg.LoginGoogle}|]
dispatch :: YesodAuth site
=> Text