mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
@ -1,6 +1,7 @@
|
||||
module Data.Flags exposing
|
||||
( Config
|
||||
, Flags
|
||||
, accountString
|
||||
, getToken
|
||||
, withAccount
|
||||
, withoutAccount
|
||||
@ -42,3 +43,12 @@ withAccount flags acc =
|
||||
withoutAccount : Flags -> Flags
|
||||
withoutAccount flags =
|
||||
{ flags | account = Nothing }
|
||||
|
||||
|
||||
accountString : AuthResult -> String
|
||||
accountString auth =
|
||||
if auth.collective == auth.user then
|
||||
auth.collective
|
||||
|
||||
else
|
||||
auth.collective ++ "/" ++ auth.user
|
||||
|
Reference in New Issue
Block a user