mirror of
https://github.com/knadh/listmonk.git
synced 2025-10-09 23:06:36 +08:00
Allow @
in usernames. Closes #2478.
This commit is contained in:
parent
4da91a0e67
commit
86f808bc77
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
reUsername = regexp.MustCompile(`^[a-zA-Z0-9_\\-\\.]+$`)
|
||||
reUsername = regexp.MustCompile(`^[a-zA-Z0-9_\-\.@]+$`)
|
||||
)
|
||||
|
||||
// GetUser retrieves a single user by ID.
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<b-field :label="$t('users.username')" label-position="on-border">
|
||||
<b-input :maxlength="200" v-model="form.username" name="username" ref="focus" autofocus
|
||||
:placeholder="$t('users.username')" required :message="$t('users.usernameHelp')" autocomplete="off"
|
||||
pattern="[a-zA-Z0-9_\-\.]+$" />
|
||||
pattern="[a-zA-Z0-9_\-\.@]+$" />
|
||||
</b-field>
|
||||
|
||||
<b-field :label="$t('globals.fields.name')" label-position="on-border">
|
||||
|
|
Loading…
Add table
Reference in a new issue