mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-10-22 11:17:41 +00:00
Fix user credentials not being read
This commit is contained in:
3
flag.go
3
flag.go
@@ -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()
|
||||
}
|
||||
}
|
||||
|
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user