You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Ensure links off the forgot password page land you at soft logout
This commit is contained in:
@@ -442,6 +442,10 @@ export default React.createClass({
|
|||||||
startAnyRegistrationFlow(payload);
|
startAnyRegistrationFlow(payload);
|
||||||
break;
|
break;
|
||||||
case 'start_registration':
|
case 'start_registration':
|
||||||
|
if (Lifecycle.isSoftLogout()) {
|
||||||
|
this._onSoftLogout();
|
||||||
|
break;
|
||||||
|
}
|
||||||
// This starts the full registration flow
|
// This starts the full registration flow
|
||||||
if (payload.screenAfterLogin) {
|
if (payload.screenAfterLogin) {
|
||||||
this._screenAfterLogin = payload.screenAfterLogin;
|
this._screenAfterLogin = payload.screenAfterLogin;
|
||||||
@@ -449,6 +453,10 @@ export default React.createClass({
|
|||||||
this._startRegistration(payload.params || {});
|
this._startRegistration(payload.params || {});
|
||||||
break;
|
break;
|
||||||
case 'start_login':
|
case 'start_login':
|
||||||
|
if (Lifecycle.isSoftLogout()) {
|
||||||
|
this._onSoftLogout();
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (payload.screenAfterLogin) {
|
if (payload.screenAfterLogin) {
|
||||||
this._screenAfterLogin = payload.screenAfterLogin;
|
this._screenAfterLogin = payload.screenAfterLogin;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user