mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 14:06:21 +00:00
fix: cambiar el token de confirmación
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
3a7c9c6b62
commit
838b398f28
1 changed files with 1 additions and 0 deletions
|
@ -99,6 +99,7 @@ class UsuariesController < ApplicationController
|
||||||
# Si es una cuenta manual que no está confirmada aun,
|
# Si es una cuenta manual que no está confirmada aun,
|
||||||
# aprovechar para reconfirmarla.
|
# aprovechar para reconfirmarla.
|
||||||
if !usuarie.confirmed? && !usuarie.created_by_invite?
|
if !usuarie.confirmed? && !usuarie.created_by_invite?
|
||||||
|
usuarie.confirmation_token = nil
|
||||||
usuarie.send :generate_confirmation_token!
|
usuarie.send :generate_confirmation_token!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue