1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-01-05 17:40:26 +00:00

Fix user credentials not being read

This commit is contained in:
bouncepaw 2021-03-07 19:58:37 +05:00
parent 81c75a4926
commit be19d19a5e
2 changed files with 5 additions and 2 deletions

View File

@ -51,4 +51,7 @@ func parseCliArgs() {
util.UserHypha = util.CanonicalName(util.UserHypha)
util.HeaderLinksHypha = util.CanonicalName(util.HeaderLinksHypha)
user.AuthUsed = util.UseFixedAuth
if user.AuthUsed && util.FixedCredentialsPath != "" {
user.ReadUsersFromFilesystem()
}
}

View File

@ -66,10 +66,10 @@ func userByName(username string) *User {
func commenceSession(username, token string) {
tokens.Store(token, username)
go dumpTokens()
dumpTokens()
}
func terminateSession(token string) {
tokens.Delete(token)
go dumpTokens()
dumpTokens()
}