Skip to content

Commit

Permalink
Modificação na RE para aceitar numeros no login do github
Browse files Browse the repository at this point in the history
  • Loading branch information
devton committed Mar 22, 2010
1 parent 6578238 commit 01c8214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class User < ActiveRecord::Base
with_options :allow_blank => true do |u|
u.validates_length_of :name, :city, :github, :in => 1..255
u.validates_format_of :email, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i
u.validates_format_of :github, :with => /^[a-z_]+$/
u.validates_format_of :github, :with => /^[a-z_0-9]+$/
u.validates_uniqueness_of :email, :github, :case_sensitive => false
end

Expand Down

0 comments on commit 01c8214

Please sign in to comment.