added email validation and tthen saved any params they were entering during signup in an @user object
This commit is contained in:
@@ -4,6 +4,7 @@ class User < ActiveRecord::Base
|
||||
validates_presence_of :password, :on => :create
|
||||
validates_presence_of :email
|
||||
validates_uniqueness_of :email
|
||||
validates_format_of :email, :with => /.+@.+\..+/i
|
||||
|
||||
def self.authenticate(email, password)
|
||||
auth = nil
|
||||
|
||||
Reference in New Issue
Block a user