Extend usernames pattern to allow '@', '.' and '"' to not lock out old users with dots in their username or users using their email address to sign in...
This commit is contained in:
parent
1bcaa5a4bf
commit
348c5ac522
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
</label>
|
||||
|
||||
<div class="controls">
|
||||
<%= f.text_field :username, :required => true, :pattern => "[A-Za-z0-9_]+", :autocapitalize => "off", :autocorrect => "off" %>
|
||||
<%= f.text_field :username, :required => true, :pattern => "[A-Za-z0-9_.@\-]+", :autocapitalize => "off", :autocorrect => "off" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue