feat(sorting tutorial table): application restore

This commit is contained in:
ros 2021-08-17 11:46:54 +02:00 committed by Sarah Vaupel
parent b1787cd77e
commit 9dc12de056

View File

@ -718,4 +718,4 @@ addPWEntry :: User
addPWEntry User{ userAuthentication = _, ..} (Text.encodeUtf8 -> pw) = db' $ do
PWHashConf{..} <- getsYesod $ view _appAuthPWHash
(AuthPWHash . Text.decodeUtf8 -> userAuthentication) <- liftIO $ makePasswordWith pwHashAlgorithm pw pwHashStrength
void $ insert User{..}
void $ insert User{..}