Don't load guest sessions on post-registration login link
If guest access was enabled, clicking the login link on the 'registration completed' page would just load the guest account you had before registering. Fixes https://github.com/vector-im/riot-web/issues/10482
This commit is contained in:
parent
b1cc089062
commit
1c156f0a5a
2 changed files with 11 additions and 3 deletions
|
@ -438,7 +438,7 @@ module.exports = React.createClass({
|
|||
_onLoginClickWithCheck: async function(ev) {
|
||||
ev.preventDefault();
|
||||
|
||||
const sessionLoaded = await Lifecycle.loadSession({});
|
||||
const sessionLoaded = await Lifecycle.loadSession({ignoreGuest: true});
|
||||
if (!sessionLoaded) {
|
||||
// ok fine, there's still no session: really go to the login page
|
||||
this.props.onLoginClick();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue