pre-login program: allow to create a new user too

clarify the difference between dynamic user creation/update and external
authentication
This commit is contained in:
Nicola Murino
2020-03-27 23:26:22 +01:00
parent f284008fb5
commit 0a9c4914aa
9 changed files with 136 additions and 45 deletions

View File

@@ -271,7 +271,7 @@ func GetQuotaScans() []ActiveQuotaScan {
return scans
}
// AddQuotaScan add an user to the ones with active quota scans.
// AddQuotaScan add a user to the ones with active quota scans.
// Returns false if the user has a quota scan already running
func AddQuotaScan(username string) bool {
mutex.Lock()
@@ -288,7 +288,7 @@ func AddQuotaScan(username string) bool {
return true
}
// RemoveQuotaScan removes an user from the ones with active quota scans
// RemoveQuotaScan removes a user from the ones with active quota scans
func RemoveQuotaScan(username string) error {
mutex.Lock()
defer mutex.Unlock()