mirror of
https://github.com/trufflesecurity/xsshunter
synced 2024-11-10 06:44:13 +00:00
adding debug lines
This commit is contained in:
parent
15ac19aa5e
commit
acf06afce8
1 changed files with 2 additions and 1 deletions
3
api.js
3
api.js
|
@ -227,9 +227,10 @@ async function set_up_api_server(app) {
|
|||
Update the user's path.
|
||||
*/
|
||||
app.put(constants.API_BASE_PATH + 'user-path', async (req, res) => {
|
||||
let collisionUser;
|
||||
if(typeof req.body.user_path == 'string'){
|
||||
const desiredPath = req.body.user_path;
|
||||
const collisionUser = await Users.findOne({ where: { 'path': desiredPath } });
|
||||
collisionUser = await Users.findOne({ where: { 'path': desiredPath } });
|
||||
}else{
|
||||
return res.status(200).json({
|
||||
"success": false,
|
||||
|
|
Loading…
Reference in a new issue