mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-11 21:42:11 +00:00
rm duplicate arrow
This commit is contained in:
@@ -9,7 +9,6 @@ This is going to be our next UI for the hosted login. It's based on Next.js 13 a
|
|||||||
A[Start] --> register
|
A[Start] --> register
|
||||||
A[Start] --> accounts
|
A[Start] --> accounts
|
||||||
A[Start] --> loginname
|
A[Start] --> loginname
|
||||||
A[Start] --> register
|
|
||||||
A[Start] -- signInWithIDP --> idp
|
A[Start] -- signInWithIDP --> idp
|
||||||
idp --> idp-success
|
idp --> idp-success
|
||||||
idp --> idp-failure
|
idp --> idp-failure
|
||||||
@@ -74,4 +73,4 @@ If no previous condition is met we throw an error stating the user was not found
|
|||||||
|
|
||||||
If the outcome after this order produces a no authentication methods found, or user not found, we check whether `loginSettings?.ignoreUnknownUsernames` is set to `true` as in this case we redirect to the /password page regardless (to not leak information about a registered user).
|
If the outcome after this order produces a no authentication methods found, or user not found, we check whether `loginSettings?.ignoreUnknownUsernames` is set to `true` as in this case we redirect to the /password page regardless (to not leak information about a registered user).
|
||||||
|
|
||||||
> NOTE: We ignore `loginSettings.allowExternalIdp` as the information whether IDPs are available comes as response from `getActiveIdentityProviders(org?)`
|
> NOTE: We ignore `loginSettings.allowExternalIdp` as the information whether IDPs are available comes as response from `getActiveIdentityProviders(org?)`.
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ export async function sendLoginname(command: SendLoginnameCommand) {
|
|||||||
// user not found, check if register is enabled on organization
|
// user not found, check if register is enabled on organization
|
||||||
|
|
||||||
if (loginSettings?.allowRegister && !loginSettings?.allowUsernamePassword) {
|
if (loginSettings?.allowRegister && !loginSettings?.allowUsernamePassword) {
|
||||||
// TODO redirect to loginname page with idp hint
|
// TODO: do we need to handle login hints for IDPs here?
|
||||||
await redirectUserToSingleIDPIfAvailable();
|
await redirectUserToSingleIDPIfAvailable();
|
||||||
|
|
||||||
throw Error("Could not find user");
|
throw Error("Could not find user");
|
||||||
|
|||||||
Reference in New Issue
Block a user