diff --git a/yesod-bin/hsfiles/mongo.hsfiles b/yesod-bin/hsfiles/mongo.hsfiles index 18d97553..62a5b71e 100644 --- a/yesod-bin/hsfiles/mongo.hsfiles +++ b/yesod-bin/hsfiles/mongo.hsfiles @@ -238,7 +238,10 @@ instance YesodAuth App where case x of Just (Entity uid _) -> return $ Just uid Nothing -> do - fmap Just $ insert $ User (credsIdent creds) Nothing + fmap Just $ insert User + { userIdent = credsIdent creds + , userPassword = Nothing + } -- You can add other plugins like BrowserID, email or OAuth here authPlugins _ = [authBrowserId def, authGoogleEmail] diff --git a/yesod-bin/hsfiles/mysql.hsfiles b/yesod-bin/hsfiles/mysql.hsfiles index 56126df9..e956c156 100644 --- a/yesod-bin/hsfiles/mysql.hsfiles +++ b/yesod-bin/hsfiles/mysql.hsfiles @@ -247,7 +247,10 @@ instance YesodAuth App where case x of Just (Entity uid _) -> return $ Just uid Nothing -> do - fmap Just $ insert $ User (credsIdent creds) Nothing + fmap Just $ insert User + { userIdent = credsIdent creds + , userPassword = Nothing + } -- You can add other plugins like BrowserID, email or OAuth here authPlugins _ = [authBrowserId def, authGoogleEmail] diff --git a/yesod-bin/hsfiles/postgres-fay.hsfiles b/yesod-bin/hsfiles/postgres-fay.hsfiles index 4151f4fb..4ab79c62 100644 --- a/yesod-bin/hsfiles/postgres-fay.hsfiles +++ b/yesod-bin/hsfiles/postgres-fay.hsfiles @@ -260,7 +260,10 @@ instance YesodAuth App where case x of Just (Entity uid _) -> return $ Just uid Nothing -> do - fmap Just $ insert $ User (credsIdent creds) Nothing + fmap Just $ insert User + { userIdent = credsIdent creds + , userPassword = Nothing + } -- You can add other plugins like BrowserID, email or OAuth here authPlugins _ = [authBrowserId def, authGoogleEmail] diff --git a/yesod-bin/hsfiles/postgres.hsfiles b/yesod-bin/hsfiles/postgres.hsfiles index 2db6cd28..34d80db3 100644 --- a/yesod-bin/hsfiles/postgres.hsfiles +++ b/yesod-bin/hsfiles/postgres.hsfiles @@ -247,7 +247,10 @@ instance YesodAuth App where case x of Just (Entity uid _) -> return $ Just uid Nothing -> do - fmap Just $ insert $ User (credsIdent creds) Nothing + fmap Just $ insert User + { userIdent = credsIdent creds + , userPassword = Nothing + } -- You can add other plugins like BrowserID, email or OAuth here authPlugins _ = [authBrowserId def, authGoogleEmail] diff --git a/yesod-bin/hsfiles/sqlite.hsfiles b/yesod-bin/hsfiles/sqlite.hsfiles index 4255fa4b..715e7403 100644 --- a/yesod-bin/hsfiles/sqlite.hsfiles +++ b/yesod-bin/hsfiles/sqlite.hsfiles @@ -247,7 +247,10 @@ instance YesodAuth App where case x of Just (Entity uid _) -> return $ Just uid Nothing -> do - fmap Just $ insert $ User (credsIdent creds) Nothing + fmap Just $ insert User + { userIdent = credsIdent creds + , userPassword = Nothing + } -- You can add other plugins like BrowserID, email or OAuth here authPlugins _ = [authBrowserId def, authGoogleEmail]