Skip to content

Commit cdbf8d8

Browse files
committed
Extracting token from reset password request in order to allow for the application to route to /repositories
1 parent 90d25c4 commit cdbf8d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/views/Login.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ export default {
5959
);
6060
const data = await response.json();
6161
console.log(data);
62+
const token = data.headers["Authorization"];
63+
this.$cookies.set("Authorization", token);
64+
this.$router.push("/repositories");
6265
} catch (error) {
6366
console.error(error);
6467
}
65-
this.$router.push("/repositories");
6668
}
6769
}
6870
};

0 commit comments

Comments
 (0)