diff --git a/src/components/GetLink.vue b/src/components/GetLink.vue
index cb08762..df8e4f0 100644
--- a/src/components/GetLink.vue
+++ b/src/components/GetLink.vue
@@ -17,7 +17,7 @@
- {{ $t("getlink.next") }}
{{ $t("menu.login")
}}
@@ -143,7 +143,9 @@ export default {
this.loading = true;
- this.$store.dispatch("createUser", { user, registrationFlowHandler: this.$refs.interactiveAuth.registrationFlowHandler }).then(
+ this.onUsernameBlur().then(() =>
+ this.$store.dispatch("createUser", { user, registrationFlowHandler: this.$refs.interactiveAuth.registrationFlowHandler }))
+ .then(
(ignoreduser) => {
this.$matrix.setUserDisplayName(userDisplayName);
},
@@ -195,7 +197,7 @@ export default {
this.loadingLoginFlows = true;
const matrixClient = sdk.createClient({ baseUrl: server });
- matrixClient.loginFlows().then((response) => {
+ return matrixClient.loginFlows().then((response) => {
console.log("FLOWS", response.flows);
this.loginFlows = response.flows.filter(this.supportedLoginFlow);
this.loadingLoginFlows = false;
@@ -207,6 +209,8 @@ export default {
this.hasError = false;
}
});
+ } else {
+ return Promise.resolve();
}
},
supportedLoginFlow(flow) {