go to procedure after cliking link

even for an instructeur which is not signed in and unstrusted
This commit is contained in:
Christophe Robillard 2020-03-17 21:31:35 +01:00
parent 4cc17453f9
commit 795eabb1ea
3 changed files with 14 additions and 1 deletions

View file

@ -198,7 +198,7 @@ class ApplicationController < ActionController::Base
# return at this location
# after the device is trusted
store_location_for(:user, request.fullpath)
store_location_for(:user, request.fullpath) if get_stored_location_for(:user).blank?
send_login_token_or_bufferize(current_instructeur)
redirect_to link_sent_path(email: current_instructeur.email)