webapp: Fix UI for removing XMPP connection.
This commit is contained in:
parent
17d2e2b346
commit
9724667a3d
8 changed files with 56 additions and 3 deletions
7
Creds.hs
7
Creds.hs
|
@ -14,6 +14,7 @@ module Creds (
|
|||
getEnvCredPair,
|
||||
writeCacheCreds,
|
||||
readCacheCreds,
|
||||
removeCreds,
|
||||
) where
|
||||
|
||||
import Common.Annex
|
||||
|
@ -138,3 +139,9 @@ decodeCredPair :: Creds -> Maybe CredPair
|
|||
decodeCredPair creds = case lines creds of
|
||||
l:p:[] -> Just (l, p)
|
||||
_ -> Nothing
|
||||
|
||||
removeCreds :: FilePath -> Annex ()
|
||||
removeCreds file = do
|
||||
d <- fromRepo gitAnnexCredsDir
|
||||
let f = d </> file
|
||||
liftIO $ nukeFile f
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue