Redirect user to the login page while registering with ichain

This commit is contained in:
Arun Kumar 2016-07-07 02:01:45 +05:30
parent 424b1302cb
commit 95f81b39f3
No known key found for this signature in database
GPG key ID: 6C40CA6462DEA424

View file

@ -14,7 +14,7 @@ class ConferenceRegistrationsController < ApplicationController
return return
# ichain does not allow us to create users during registration # ichain does not allow us to create users during registration
elsif (ENV['OSEM_ICHAIN_ENABLED'] == 'true') && !current_user elsif (ENV['OSEM_ICHAIN_ENABLED'] == 'true') && !current_user
redirect_to root_path, alert: 'You need to sign in or sign up before continuing.' redirect_to new_user_ichain_session_path, alert: 'You need to sign in or sign up before continuing.'
return return
end end