Skip to content
Snippets Groups Projects
Commit 4a1f00e5 authored by Håkon Eilertsen Røskaft's avatar Håkon Eilertsen Røskaft
Browse files

More change from main

parent 937470ca
No related branches found
No related tags found
1 merge request!92Change password 2
......@@ -183,7 +183,7 @@ export default {
this.message = "";
this.$store.commit("saveToken", newPasswordResponse.token);
await this.$router.push("/");
} else if (!newPasswordResponse.correctPassword){
} else if (!newPasswordResponse.correctPassword) {
//The old password was not correct
this.message = "Det gamle passordet stemmer ikke for denne brukeren";
} else {
......
......@@ -7,7 +7,7 @@ const API_URL = process.env.VUE_APP_BASEURL;
class UserService {
async getUserFromId(userId) {
return await axios
.get(API_URL + "/users/" + userId + "/profile", {
.get(API_URL + "users/" + userId + "/profile", {
headers: tokenHeader(),
})
.then((res) => {
......
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