Do not propose bootsrap for SSO accounts
Because we do not support yet confirming account credentials using SSO
This commit is contained in:
parent
0ac6a26b6e
commit
35962c3cb5
|
@ -167,6 +167,8 @@ class HomeActivity : VectorBaseActivity(), ToolbarConfigurable {
|
||||||
val crossSigningEnabledOnAccount = myCrossSigningKeys != null
|
val crossSigningEnabledOnAccount = myCrossSigningKeys != null
|
||||||
|
|
||||||
if (!crossSigningEnabledOnAccount && !sharedActionViewModel.isAccountCreation) {
|
if (!crossSigningEnabledOnAccount && !sharedActionViewModel.isAccountCreation) {
|
||||||
|
// Do not propose for SSO accounts, because we do not support yet confirming account credentials using SSO
|
||||||
|
if (session.getHomeServerCapabilities().canChangePassword) {
|
||||||
// We need to ask
|
// We need to ask
|
||||||
promptSecurityEvent(
|
promptSecurityEvent(
|
||||||
session,
|
session,
|
||||||
|
@ -175,6 +177,10 @@ class HomeActivity : VectorBaseActivity(), ToolbarConfigurable {
|
||||||
) {
|
) {
|
||||||
it.navigator.upgradeSessionSecurity(it)
|
it.navigator.upgradeSessionSecurity(it)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Do not do it again
|
||||||
|
sharedActionViewModel.hasDisplayedCompleteSecurityPrompt = true
|
||||||
|
}
|
||||||
} else if (myCrossSigningKeys?.isTrusted() == false) {
|
} else if (myCrossSigningKeys?.isTrusted() == false) {
|
||||||
// We need to ask
|
// We need to ask
|
||||||
promptSecurityEvent(
|
promptSecurityEvent(
|
||||||
|
|
Loading…
Reference in New Issue