Fix start_sso / start_cas URLs failing to redirect to a authentication prompt (#11681)

* Show screen before login if using start_sso or start_cas

* Add tests

* Fix lint

* Fix lint

* Add one for CAS

* prettier
This commit is contained in:
Will Hunt 2023-10-03 16:19:54 +01:00 committed by GitHub
parent 54a4875e15
commit 677854d318
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 63 additions and 1 deletions

View file

@ -393,7 +393,8 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
return;
}
if (firstScreen === "login" || firstScreen === "register" || firstScreen === "forgot_password") {
// If the first screen is an auth screen, we don't want to wait for login.
if (firstScreen !== null && AUTH_SCREENS.includes(firstScreen)) {
this.showScreenAfterLogin();
}
}