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

@ -306,22 +306,6 @@ export default {
this.$navigation.push({ name: "Profile" }, 1);
},
upgradeAccount() {
this.$matrix
.upgradeGuestAccount()
.then((user) => {
// Done, login with the "new" account to get a real token instead of our guest token.
this.user = user;
return this.$store.dispatch("auth/login", this.user);
})
.then(() => {
console.log("Upgrade done!");
})
.catch((err) => {
console.log("ERROR", err);
});
},
copyRoomLink() {
this.$copyText(this.roomLink).then(
function (e) {