rm duplicate arrow

This commit is contained in:
peintnermax
2024-09-13 14:14:09 +02:00
parent 69fd0b42fa
commit 260c91e661
2 changed files with 2 additions and 3 deletions

View File

@@ -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?)`.

View File

@@ -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");