about summary refs log tree commit diff
path: root/src/Types.hs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-07-31T17·28+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-07-31T17·30+0100
commit35b218c5436ec5ad8fdae3d45a8a949d06b0d920 (patch)
tree1d829b52ab9ddf8723057a7c189b033d99befb2f /src/Types.hs
parentc8ed6e51fea30ea2f79cca058c4f161625ab6a85 (diff)
Return a JSON Session on a successful POST /login
This will make the UX on a the client-side smoother.
Diffstat (limited to 'src/Types.hs')
-rw-r--r--src/Types.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Types.hs b/src/Types.hs
index f47e1419757a..5026b97383e6 100644
--- a/src/Types.hs
+++ b/src/Types.hs
@@ -174,8 +174,8 @@ instance FromRow Account where
     pure Account{..}
 
 data Session = Session
-  { username :: Username
-  , role :: Role
+  { sessionUsername :: Username
+  , sessionRole :: Role
   } deriving (Eq, Show)
 
 instance ToJSON Session where