mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Use Create prompt when user already said they wanted to create an account #3627.
This commit is contained in:
committed by
Benoit Marty
parent
5a48d89df6
commit
e7ec53dd76
+2
-1
@@ -93,7 +93,8 @@ class ConfirmAccountProviderPresenter @AssistedInject constructor(
|
|||||||
val matrixHomeServerDetails = authenticationService.getHomeserverDetails().value!!
|
val matrixHomeServerDetails = authenticationService.getHomeserverDetails().value!!
|
||||||
if (matrixHomeServerDetails.supportsOidcLogin) {
|
if (matrixHomeServerDetails.supportsOidcLogin) {
|
||||||
// Retrieve the details right now
|
// 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) {
|
} else if (params.isAccountCreation) {
|
||||||
val url = webClientUrlForAuthenticationRetriever.retrieve(homeserverUrl)
|
val url = webClientUrlForAuthenticationRetriever.retrieve(homeserverUrl)
|
||||||
LoginFlow.AccountCreationFlow(url)
|
LoginFlow.AccountCreationFlow(url)
|
||||||
|
|||||||
Reference in New Issue
Block a user