Skip to content
Snippets Groups Projects

Enable SSO and ensure trial registrations perform onboarding steps

Merged Doug Stull requested to merge 404926-add-sso-onboarding-specs into master
18 files
+ 141
115
Compare changes
  • Side-by-side
  • Inline
Files
18
@@ -399,7 +399,9 @@ def hexdigest(string)
end
def require_email
redirect_to profile_path, notice: _('Please complete your profile with email address') if in_user_oath_flow?
if current_user && current_user.temp_oauth_email? && session[:impersonator_id].nil?
redirect_to profile_path, notice: _('Please complete your profile with email address')
end
end
def enforce_terms!
@@ -572,16 +574,11 @@ def context_user
def required_signup_info
return unless current_user
return unless current_user.role_required?
return if in_user_oath_flow?
store_location_for :user, request.fullpath
redirect_to users_sign_up_welcome_path
end
def in_user_oath_flow?
current_user.present? && current_user.temp_oauth_email? && session[:impersonator_id].nil?
end
end
ApplicationController.prepend_mod
Loading