go to procedure after cliking link
even for an instructeur which is not signed in and unstrusted
This commit is contained in:
parent
4cc17453f9
commit
795eabb1ea
3 changed files with 14 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue