Skip to content

Commit

Permalink
let authlogic define the username regex.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlehner authored and steveyken committed Dec 21, 2013
1 parent cad9a64 commit 819e23a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/models/users/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ class User < ActiveRecord::Base
c.session_class = Authentication
c.validates_uniqueness_of_login_field_options = { :message => :username_taken }
c.validates_length_of_login_field_options = { :minimum => 1, :message => :missing_username }
c.merge_validates_format_of_login_field_options(:with => /\A[a-zA-Z0-9_-]+\z/)

c.validates_uniqueness_of_email_field_options = { :message => :email_in_use }
c.validates_length_of_password_field_options = { :minimum => 0, :allow_blank => true, :if => :require_password? }
c.ignore_blank_passwords = true
Expand Down

0 comments on commit 819e23a

Please sign in to comment.