Improved logout/login and change password support
This commit is contained in:
parent
31535f0f3c
commit
1f4970368a
7 changed files with 109 additions and 99 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue