commit
afc2f2cd8e
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ class Administrateurs::ActivateController < ApplicationController
|
||||||
|
|
||||||
if @administrateur
|
if @administrateur
|
||||||
# the administrateur activates its account from an email
|
# the administrateur activates its account from an email
|
||||||
trust_device
|
trust_device(Time.zone.now)
|
||||||
else
|
else
|
||||||
flash.alert = "Le lien de validation d'administrateur a expiré, #{helpers.contact_link('contactez-nous', tags: 'lien expiré')} pour obtenir un nouveau lien."
|
flash.alert = "Le lien de validation d'administrateur a expiré, #{helpers.contact_link('contactez-nous', tags: 'lien expiré')} pour obtenir un nouveau lien."
|
||||||
redirect_to root_path
|
redirect_to root_path
|
||||||
|
|
|
@ -6,7 +6,7 @@ class Gestionnaires::ActivateController < ApplicationController
|
||||||
|
|
||||||
if @gestionnaire
|
if @gestionnaire
|
||||||
# the gestionnaire activates its account from an email
|
# the gestionnaire activates its account from an email
|
||||||
trust_device
|
trust_device(Time.zone.now)
|
||||||
else
|
else
|
||||||
flash.alert = "Le lien de validation du compte instructeur a expiré, #{helpers.contact_link('contactez-nous', tags: 'lien expiré')} pour obtenir un nouveau lien."
|
flash.alert = "Le lien de validation du compte instructeur a expiré, #{helpers.contact_link('contactez-nous', tags: 'lien expiré')} pour obtenir un nouveau lien."
|
||||||
redirect_to root_path
|
redirect_to root_path
|
||||||
|
|
Loading…
Add table
Reference in a new issue