changing route name

This commit is contained in:
counter 2023-01-15 20:20:14 -08:00
parent b2aa24016f
commit 7826088c3c
2 changed files with 3 additions and 2 deletions

2
api.js
View file

@ -163,7 +163,7 @@ async function set_up_api_server(app) {
}
req.session.email = user.email;
req.session.authenticated = true;
res.send(`Hello ${user.email}, your path is ${user.path}!`);
res.redirect("/app/");
} catch (error) {
console.log(`Error Occured: ${error}`);
res.status(500).send("Error Occured");

View file

@ -52,6 +52,7 @@ export default {
return auth_result.result.is_authenticated;
},
async attempt_login() {
window.location.href = "/login";
const login_result = await api_request.authenticate(
this.password
);
@ -146,4 +147,4 @@ function get_random_number_in_range(min, max) {
.bg-purp {
background-color: #8965e0 !important;
}
</style>
</style>