Some more tests. Fix invitation link and password reset links. After creating their account and setting a password, the user is logged in
This commit is contained in:
@@ -11,9 +11,11 @@ class User < ApplicationRecord
|
||||
generates_token_for :invitation_login, expires_in: 24.hours do
|
||||
updated_at
|
||||
end
|
||||
generates_token_for :password_reset, expires_in: 1.hour do
|
||||
|
||||
generates_token_for :password_reset, expires_in: 1.hour do
|
||||
updated_at
|
||||
end
|
||||
|
||||
generates_token_for :magic_login, expires_in: 15.minutes do
|
||||
last_sign_in_at
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user