redirect to sign_up link if user 's email on invitation as no account on the platform
This commit is contained in:
parent
973d6693e0
commit
c37fb9bb20
4 changed files with 66 additions and 2 deletions
|
@ -1,4 +1,12 @@
|
|||
class Users::Dossiers::InvitesController < UsersController
|
||||
|
||||
def authenticate_user!
|
||||
session["user_return_to"] = request.fullpath
|
||||
return redirect_to new_user_registration_path(user_email: params[:email]) if !params[:email].blank? && User.find_by_email(params[:email]).nil?
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
def show
|
||||
@facade = InviteDossierFacades.new params[:id], current_user.email
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue