mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 07:33:21 +00:00
Allow numbers in htpasswd usernames
This commit is contained in:
parent
4c5077769c
commit
83e78c6cd7
2 changed files with 2 additions and 1 deletions
|
@ -100,7 +100,7 @@ func (h *HtpasswdFile) throttleTimer() {
|
|||
}
|
||||
}
|
||||
|
||||
var validUsernameRegexp = regexp.MustCompile(`^[\p{L}@.-]+$`)
|
||||
var validUsernameRegexp = regexp.MustCompile(`^[\p{L}\d@.-]+$`)
|
||||
|
||||
// Reload reloads the htpasswd file. If the reload fails, the Users map is not changed and the error is returned.
|
||||
func (h *HtpasswdFile) Reload() error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue