Merge pull request #854 from paul-rouse/master

Redirect dynamically in GoogleEmail2 login page
This commit is contained in:
Michael Snoyman 2014-10-21 11:25:15 +03:00
commit 245041bc92

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