chore: cleanup trailing empty lines from sed operations

This commit is contained in:
2026-07-16 07:30:37 -04:00
parent 456eae4717
commit e8036bab11
7 changed files with 2 additions and 9 deletions
+2 -2
View File
@@ -50,11 +50,11 @@ import System.Directory (createDirectoryIfMissing)
import System.FilePath (takeDirectory)
import Text.Read (readMaybe)
import Sis.Types
import Sis.Auth (hashPassword)
import Crypto.Random.Entropy (getEntropy)
import Data.ByteString.Base64 qualified as B64
import Data.Text.Encoding qualified as TE
import Sis.Auth (hashPassword)
import Sis.Types
----------------------------------------------------------------------
-- Effect definition
-1
View File
@@ -98,7 +98,6 @@ page = do
case mSession of
Nothing -> do
redirect (routeUri RLogin)
Just us -> do
hhs <- getUserHouseholds (UserId (usUserId us))
case hhs of
-1
View File
@@ -95,7 +95,6 @@ page = do
case mSession of
Nothing -> do
redirect (routeUri RLogin)
Just us -> do
hhs <- getUserHouseholds (UserId (usUserId us))
case hhs of
-1
View File
@@ -111,7 +111,6 @@ page = do
case mSession of
Nothing -> do
redirect (routeUri RLogin)
Just us -> do
today <- liftIO (utctDay <$> getCurrentTime)
hhs <- getUserHouseholds (UserId (usUserId us))
-1
View File
@@ -120,7 +120,6 @@ page = do
case mSession of
Nothing -> do
redirect (routeUri RLogin)
Just us -> do
hhs <- getUserHouseholds (UserId (usUserId us))
case hhs of
-2
View File
@@ -42,7 +42,6 @@ instance (DB :> es, IOE :> es) => HyperView LoginPage es where
| verifyPassword (lfPassword formData') (userPasswordHash u) -> do
saveSession (UserSession (unUserId (userId u)))
pure (loginSuccessView)
_ -> pure (loginView (Just "Invalid email or password"))
update Noop = pure (loginView Nothing)
@@ -80,5 +79,4 @@ page = do
case mSession of
Just _ -> do
redirect (routeUri RDashboard)
Nothing -> pure $ hyper LoginPage $ loginView Nothing
-1
View File
@@ -89,5 +89,4 @@ page = do
case mSession of
Just _ -> do
redirect (routeUri RDashboard)
Nothing -> pure $ hyper SignupPage $ signupView Nothing