forked from External/greenlight
Added mapping roles through email to site settings (#2373)
This commit is contained in:
@ -57,7 +57,7 @@ class UsersController < ApplicationController
|
||||
|
||||
# Sign in automatically if email verification is disabled or if user is already verified.
|
||||
if !Rails.configuration.enable_email_verification || @user.email_verified
|
||||
@user.set_role :user
|
||||
@user.set_role(initial_user_role(@user.email))
|
||||
|
||||
login(@user) && return
|
||||
end
|
||||
|
Reference in New Issue
Block a user