Fix WWW-Authenticate syntax
This commit is contained in:
parent
28af340573
commit
34f4df608c
|
@ -154,7 +154,7 @@ verifyBasic BasicAuth {..} = do
|
||||||
correctPassword <- checkPassword password <$> lift dbUserPasswordHash
|
correctPassword <- checkPassword password <$> lift dbUserPasswordHash
|
||||||
if correctPassword
|
if correctPassword
|
||||||
then pure user
|
then pure user
|
||||||
else do setHeader "WWW-Authenticate" "Basic realm=\"GraphQL API\", Bearer realm\"GraphQL API\""
|
else do setHeader "WWW-Authenticate" "Basic realm=\"GraphQL API\", Bearer realm=\"GraphQL API\""
|
||||||
raiseStatus status401 "Wrong password or email"
|
raiseStatus status401 "Wrong password or email"
|
||||||
|
|
||||||
newtype APIM a = APIM (ReaderT RequestState IO a)
|
newtype APIM a = APIM (ReaderT RequestState IO a)
|
||||||
|
|
Loading…
Reference in New Issue