Implement forgotten loadUserByEmailAddress (thanks ultrason)
This commit is contained in:
parent
54fded2f0c
commit
47b0cdfc2f
1 changed files with 6 additions and 5 deletions
|
@ -446,6 +446,7 @@ instance AccountDB AccountPersistDB' where
|
||||||
type UserAccount AccountPersistDB' = Entity Person
|
type UserAccount AccountPersistDB' = Entity Person
|
||||||
|
|
||||||
loadUser = morphAPDB . loadUser
|
loadUser = morphAPDB . loadUser
|
||||||
|
loadUserByEmailAddress = morphAPDB . loadUserByEmailAddress
|
||||||
|
|
||||||
addNewUser name email key pwd = AccountPersistDB' $ runDB $ do
|
addNewUser name email key pwd = AccountPersistDB' $ runDB $ do
|
||||||
now <- liftIO getCurrentTime
|
now <- liftIO getCurrentTime
|
||||||
|
|
Loading…
Reference in a new issue