Browse Source

Accept '.' in usernames

* Closes: #9
webdeploy
meskio 3 years ago
parent
commit
c40b87eb64
Signed by: meskio
GPG Key ID: 52B8F5AC97A2DA86
  1. 2
      server/add_user.go

2
server/add_user.go

@ -13,7 +13,7 @@ import (
)
var (
validName = regexp.MustCompile(`^[a-z0-9][a-z0-9_\-]*$`)
validName = regexp.MustCompile(`^[a-z0-9][a-z0-9_\-\.]*$`)
// See https://ldpreload.com/blog/names-to-reserve
reservedNames = map[string]bool{

Loading…
Cancel
Save