mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-02-08 00:57:27 +01:00
Fix double login problem (closes #56)
This commit is contained in:
parent
a1c9abbdb5
commit
216f2b8106
@ -212,7 +212,15 @@ instance YesodAuth App where
|
|||||||
, " added to your account."
|
, " added to your account."
|
||||||
]
|
]
|
||||||
redirect ProfileR
|
redirect ProfileR
|
||||||
Just _ -> invalidArgs $ return $ concat
|
Just (Entity _ email)
|
||||||
|
| emailUser email == uid -> return $ do
|
||||||
|
setMessage $ toHtml $ concat
|
||||||
|
[ "The email address "
|
||||||
|
, credsIdent creds
|
||||||
|
, " is already part of your account"
|
||||||
|
]
|
||||||
|
redirect ProfileR
|
||||||
|
| otherwise -> invalidArgs $ return $ concat
|
||||||
[ "The email address "
|
[ "The email address "
|
||||||
, credsIdent creds
|
, credsIdent creds
|
||||||
, " is already associated with a different account."
|
, " is already associated with a different account."
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user