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:
Dennis Schubert 2012-05-23 20:52:43 +03:00
parent 1bcaa5a4bf
commit 348c5ac522

View file

@ -15,7 +15,7 @@
</label> </label>
<div class="controls"> <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>
</div> </div>