mirror of
https://github.com/System-End/identity-vault.git
synced 2026-04-19 22:05:07 +00:00
fix for signup -> oauth
This commit is contained in:
parent
1a3c5869f0
commit
b5d6e5bc56
1 changed files with 8 additions and 1 deletions
|
|
@ -101,11 +101,18 @@ class IdentitiesController < ApplicationController
|
|||
@identity = Identity.new(attrs)
|
||||
|
||||
if @identity.save
|
||||
# If returning to an OAuth flow, skip Slack provisioning redirect
|
||||
next_action = if @return_to.present? && @return_to.start_with?("/oauth/authorize")
|
||||
"home"
|
||||
else
|
||||
@onboarding_scenario.next_action.to_s
|
||||
end
|
||||
|
||||
login_attempt = LoginAttempt.create!(
|
||||
identity: @identity,
|
||||
authentication_factors: {},
|
||||
provenance: "signup",
|
||||
next_action: @onboarding_scenario.next_action.to_s,
|
||||
next_action: next_action,
|
||||
return_to: @return_to
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue