SoftLogout UX is broken if the homeserver supports both password and SSO #5311
Labels
A-Soft-Logout
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Critical
Prevents work, causes data loss and/or has no workaround
T-Defect
Something isn't working: bugs, crashes, hangs and other reported problems
SoftLogout UX is broken if the homeserver supports both password and SSO like for instance matrix.org.
Mainly because this block is empty:
https://github.com/vector-im/element-android/blob/develop/vector/src/main/java/im/vector/app/features/signout/soft/SoftLogoutController.kt#L125
In this case, the app should display the password form, if the user has created the session using a password. If SSO was used, a message like "Please clear data and log in again to your account" can be displayed.
The fact that the user has created the session using a password is not stored. This info can be stored in the
SessionParamsEntity
as a nullable boolean. A database migration will be required.Simulating a soft logout can be done by adding this line:
here (for instance)
Critical because the user cannot recover their session in case of soft logout.
The text was updated successfully, but these errors were encountered: