blob: 3bdd3c89d174ddfbe2971494e52628e405d1f158 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class ResetPassword < User::SaveOperation
# Change password validations in src/operations/mixins/password_validations.cr
include PasswordValidations
attribute password : String
attribute password_confirmation : String
before_save do
Authentic.copy_and_encrypt password, to: encrypted_password
end
end
|