mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-01-07 10:20:26 +00:00
Fix user credentials not being read
This commit is contained in:
parent
81c75a4926
commit
be19d19a5e
3
flag.go
3
flag.go
@ -51,4 +51,7 @@ func parseCliArgs() {
|
|||||||
util.UserHypha = util.CanonicalName(util.UserHypha)
|
util.UserHypha = util.CanonicalName(util.UserHypha)
|
||||||
util.HeaderLinksHypha = util.CanonicalName(util.HeaderLinksHypha)
|
util.HeaderLinksHypha = util.CanonicalName(util.HeaderLinksHypha)
|
||||||
user.AuthUsed = util.UseFixedAuth
|
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) {
|
func commenceSession(username, token string) {
|
||||||
tokens.Store(token, username)
|
tokens.Store(token, username)
|
||||||
go dumpTokens()
|
dumpTokens()
|
||||||
}
|
}
|
||||||
|
|
||||||
func terminateSession(token string) {
|
func terminateSession(token string) {
|
||||||
tokens.Delete(token)
|
tokens.Delete(token)
|
||||||
go dumpTokens()
|
dumpTokens()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user