diff --git a/webapi/src/main/scala/org/knora/webapi/slice/admin/domain/model/User.scala b/webapi/src/main/scala/org/knora/webapi/slice/admin/domain/model/User.scala index e8aebec81a..8707ac06cd 100644 --- a/webapi/src/main/scala/org/knora/webapi/slice/admin/domain/model/User.scala +++ b/webapi/src/main/scala/org/knora/webapi/slice/admin/domain/model/User.scala @@ -188,7 +188,7 @@ object Username extends StringValueCompanion[Username] { */ private val UsernameRegex: Regex = ( "^(?=.{3,50}$)" + - // 4 - 50 characters long + // 3 - 50 characters long "(?![_.-])" + // Underscore, hyphen and dot can't be at the start of a username "(?!.*[_.-]{2})" +