mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Merge branch 'main' of https://github.com/maybe-finance/maybe
This commit is contained in:
commit
55c352e8ef
11 changed files with 14 additions and 18 deletions
|
@ -1,3 +1,3 @@
|
|||
class Current < ActiveSupport::CurrentAttributes
|
||||
attribute :user
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
class User < ApplicationRecord
|
||||
has_secure_password
|
||||
|
||||
|
||||
belongs_to :family
|
||||
|
||||
validates :email, presence: true, uniqueness: true
|
||||
normalizes :email, with: -> (email) { email.strip.downcase }
|
||||
normalizes :email, with: ->(email) { email.strip.downcase }
|
||||
|
||||
generates_token_for :password_reset, expires_in: 15.minutes do
|
||||
password_salt&.last(10)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue