Sha256: 94dd107a131740da8238c96fcea4f9ee2fbd86c0825654c5daead8ccb957e219

Contents?: true

Size: 327 Bytes

Versions: 7

Compression:

Stored size: 327 Bytes

Contents

class Newbie < User

  def send_password_set
    generate_token(:password_reset_token)
    self.password_reset_sent_at = Time.zone.now
    # necessary to pass has_secure_password validations
    self.password, self.password_confirmation = 'temporary', 'temporary'
    save!
    UserMailer.password_set(self).deliver
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tkh_authentication-0.9.6 app/models/newbie.rb
tkh_authentication-0.9.5 app/models/newbie.rb
tkh_authentication-0.9.4 app/models/newbie.rb
tkh_authentication-0.9.3 app/models/newbie.rb
tkh_authentication-0.1.11 app/models/newbie.rb
tkh_authentication-0.1.10 app/models/newbie.rb
tkh_authentication-0.1.9 app/models/newbie.rb