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:
David Baker 2019-08-02 11:22:42 +01:00
parent b1cc089062
commit 1c156f0a5a
2 changed files with 11 additions and 3 deletions

View file

@ -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();