servant-auth-token-persistent 0.5.1.1 → 0.6.0.0
raw patch · 5 files changed
+10/−5 lines, 5 filesdep ~servant-auth-token
Dependency ranges changed: servant-auth-token
Files
- CHANGELOG.md +5/−0
- README.md +1/−1
- servant-auth-token-persistent.cabal +2/−2
- src/Servant/Server/Auth/Token/Persistent.hs +1/−1
- src/Servant/Server/Auth/Token/Persistent/Schema.hs +1/−1
CHANGELOG.md view
@@ -1,3 +1,8 @@+0.6.0.0+=======++* Breaking changes in `servant-auth-token-0.5.0.0`.+ 0.5.1.1 =======
README.md view
@@ -25,7 +25,7 @@ pool <- liftIO $ do pool <- createPool cfg -- run migrations- flip runSqlPool pool $ runMigration S.migrateAll+ flip runSqlPool pool $ runMigration S.migrateAllAuth -- create default admin if missing one _ <- runPersistentBackendT authConfig pool $ ensureAdmin 17 "admin" "123456" "admin@localhost" return pool
servant-auth-token-persistent.cabal view
@@ -1,5 +1,5 @@ name: servant-auth-token-persistent-version: 0.5.1.1+version: 0.6.0.0 synopsis: Persistent backend for servant-auth-token server description: Please see README.md homepage: https://github.com/ncrashed/servant-auth-token#readme@@ -30,7 +30,7 @@ , persistent >= 2.2 && < 2.7 , persistent-template >= 2.1 && < 2.7 , servant-server >= 0.9 && < 0.12- , servant-auth-token >= 0.4 && < 0.5+ , servant-auth-token >= 0.5 && < 0.6 , servant-auth-token-api >= 0.4 && < 0.5 , text >= 1.2 && < 1.3 , time >= 1.5 && < 1.7
src/Servant/Server/Auth/Token/Persistent.hs view
@@ -119,7 +119,7 @@ [S.UserSingleUseCodeExpire ==. Nothing] ||. [S.UserSingleUseCodeExpire >=. Just t] )) [Desc S.UserSingleUseCodeExpire]- invalidatePermamentCodes i t = liftDB $ updateWhere [+ invalidatePermanentCodes i t = liftDB $ updateWhere [ S.UserSingleUseCodeUser ==. S.convertTo i , S.UserSingleUseCodeUsed ==. Nothing , S.UserSingleUseCodeExpire ==. Nothing
src/Servant/Server/Auth/Token/Persistent/Schema.hs view
@@ -15,7 +15,7 @@ share [mkPersist sqlSettings , mkDeleteCascade sqlSettings- , mkMigrate "migrateAll"] [persistLowerCase|+ , mkMigrate "migrateAllAuth"] [persistLowerCase| UserImpl login Login password Password -- encrypted with salt