Use Create prompt when user already said they wanted to create an account #3627.
This commit is contained in:
parent
5a48d89df6
commit
e7ec53dd76
1 changed files with 2 additions and 1 deletions
|
|
@ -93,7 +93,8 @@ class ConfirmAccountProviderPresenter @AssistedInject constructor(
|
|||
val matrixHomeServerDetails = authenticationService.getHomeserverDetails().value!!
|
||||
if (matrixHomeServerDetails.supportsOidcLogin) {
|
||||
// Retrieve the details right now
|
||||
LoginFlow.OidcFlow(authenticationService.getOidcUrl(OidcPrompt.Consent).getOrThrow())
|
||||
val oidcPrompt = if (params.isAccountCreation) OidcPrompt.Create else OidcPrompt.Consent
|
||||
LoginFlow.OidcFlow(authenticationService.getOidcUrl(oidcPrompt).getOrThrow())
|
||||
} else if (params.isAccountCreation) {
|
||||
val url = webClientUrlForAuthenticationRetriever.retrieve(homeserverUrl)
|
||||
LoginFlow.AccountCreationFlow(url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue