diff options
-rw-r--r-- | src/App.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/App.hs b/src/App.hs index 9a4c3ae2066f..273bb3951e65 100644 --- a/src/App.hs +++ b/src/App.hs @@ -145,7 +145,7 @@ server T.Config{..} = createAccount liftIO $ LoginAttempts.increment dbFile username throwError err401 { errBody = "Your credentials are invalid" } Just attempts -> - if attempts > 3 then + if attempts >= 3 then throwError err429 else if T.passwordsMatch password accountPassword then do uuid <- liftIO $ Sessions.findOrCreate dbFile account |