mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 00:06:21 +00:00
fixup! feat: bloquear spambots después de un minuto #17722
This commit is contained in:
parent
f00e3b8230
commit
9c0305d79d
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class LockUsuarieJob < ApplicationJob
|
||||||
password = SecureRandom.base36
|
password = SecureRandom.base36
|
||||||
|
|
||||||
usuarie.skip_password_change_notification!
|
usuarie.skip_password_change_notification!
|
||||||
usuarie.update(password: password, password_confirmation: password, remember_created_at: nil, locked_at: Time.utc.now)
|
usuarie.update(password: password, password_confirmation: password, remember_created_at: nil, locked_at: Time.now.utc)
|
||||||
|
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue