Added mapping roles through email to site settings (#2373)

This commit is contained in:
Ahmad Farhat
2020-12-16 19:31:32 -05:00
committed by GitHub
parent 14350c5f5d
commit 5a51f6d714
12 changed files with 202 additions and 10 deletions

View File

@ -228,7 +228,7 @@ class SessionsController < ApplicationController
send_invite_user_signup_email(user) if invite_registration && !@user_exists
user.set_role :user if !@user_exists && user.role.nil?
user.set_role(initial_user_role(user.email)) if !@user_exists && user.role.nil?
login(user)