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:
parent
54a4875e15
commit
677854d318
2 changed files with 63 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue