Improved logout/login and change password support

This commit is contained in:
N-Pex 2021-03-29 21:55:43 +02:00
parent 31535f0f3c
commit 1f4970368a
7 changed files with 109 additions and 99 deletions

View file

@ -283,7 +283,10 @@ export default {
* a random account.
*/
getLoginPromise() {
return this.$store.dispatch("auth/login", this.currentUser || this.guestUser);
if (this.$matrix.ready) {
return Promise.resolve(this.$matrix.currentUser);
}
return this.$store.dispatch("auth/login", this.currentUser || this.guestUser);
},
getRoomInfo() {
@ -326,7 +329,7 @@ export default {
},
handleLogin() {
this.$navigation.push({ name: "Login" }, 1);
this.$navigation.push({path: "/login"}, 1);
},
handleOpenApp() {