mirror of
https://github.com/trufflesecurity/xsshunter
synced 2025-02-17 13:58:26 +00:00
changing route name
This commit is contained in:
parent
b2aa24016f
commit
7826088c3c
2 changed files with 3 additions and 2 deletions
2
api.js
2
api.js
|
@ -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");
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue