diff --git a/app/models/user.rb b/app/models/user.rb index eeab16653..8dcca73ae 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -37,7 +37,7 @@ class User after_create :seed_aspects - before_save :downcase_username + before_validation_on_create :downcase_username def self.find_for_authentication(conditions={}) if conditions[:username] =~ /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i # email regex