blob: d3b53dea4693df3ead542cc02bf66bdc3428cae9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
module Model.AuthenticationHolder (AuthenticationHolder (..), server_password) where
import Data.Aeson
import GHC.Generics
import Data.Text (Text)
import Data.ByteString
----------------------------------------------------------------------------------------------------
data AuthenticationHolder = AuthenticationHolder
{ username :: Text
, device :: Text
, expire :: Maybe Int
}
deriving (Show, Eq, Generic)
instance FromJSON AuthenticationHolder
instance ToJSON AuthenticationHolder
server_password :: ByteString
server_password = "jamaa_dev"
|