|
|
|
@ -188,7 +188,7 @@ class User < Principal
|
|
|
|
|
validates_confirmation_of :password, :allow_nil => true
|
|
|
|
|
validates_inclusion_of :mail_notification, :in => MAIL_NOTIFICATION_OPTIONS.collect(&:first), :allow_blank => true
|
|
|
|
|
validate :validate_password_length
|
|
|
|
|
#validates_email_realness_of :mail
|
|
|
|
|
validates_email_realness_of :mail
|
|
|
|
|
before_create :set_mail_notification
|
|
|
|
|
before_save :update_hashed_password
|
|
|
|
|
before_destroy :remove_references_before_destroy
|
|
|
|
|