Skip to content
Snippets Groups Projects
Commit a6fbbc39 authored by Titus Netland's avatar Titus Netland
Browse files

Merge branch 'register_fix' into 'main'

Register fix

See merge request !67
parents 77e12114 9b4c3ff3
No related branches found
No related tags found
1 merge request!67Register fix
Pipeline #178579 passed
......@@ -182,15 +182,15 @@ export default {
const loginResponse = await doLogin(loginRequest);
if (loginResponse === "Failed login") {
if (loginResponse.isLoggedIn === false) {
this.errorMessage = "Failed to log in with new user";
this.$store.commit("logout");
this.$router.push("/login");
await this.$router.push("/login");
return;
}
this.$store.commit("saveToken", loginResponse);
this.$router.push("/");
this.$store.commit("saveToken", loginResponse.token);
await this.$router.push("/");
},
async sendRegisterRequest() {
const registerInfo = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment