Skip to content
Snippets Groups Projects
Commit 877cc8a5 authored by Sondre Malerud's avatar Sondre Malerud
Browse files

Fjerna logg-ut i created

parent 209726ad
No related branches found
No related tags found
1 merge request!21Merge profilinnstillinger into main
Pipeline #225301 failed
<script> <script>
import { API } from '@/util/API.js'; import { API } from '@/util/API.js';
import router from '@/router/index.js'; import router from '@/router/index.js';
import {useAuthStore} from "@/stores/authStore";
export default { export default {
data() { data() {
...@@ -12,12 +11,8 @@ ...@@ -12,12 +11,8 @@
errormsg: "", errormsg: "",
} }
}, },
created(){
useAuthStore().logout();
},
methods: { methods: {
login() { login() {
//todo: implement when API is up
API.login({email: this.email, password: this.password}).then(() => { API.login({email: this.email, password: this.password}).then(() => {
router.push("/selectProfile"); router.push("/selectProfile");
}) })
......
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