mirror of
https://github.com/trufflesecurity/xsshunter
synced 2024-11-24 05:13:04 +00:00
initializing user
This commit is contained in:
parent
eccf511385
commit
f7403e4203
1 changed files with 1 additions and 0 deletions
1
api.js
1
api.js
|
@ -169,6 +169,7 @@ async function set_up_api_server(app) {
|
|||
const [user, created] = await Users.findOrCreate({ where: { 'email': email } });
|
||||
if(created){
|
||||
user.path = makeRandomPath(20);
|
||||
user.injectionCorrelationAPIKey = makeRandomPath(20);
|
||||
user.save();
|
||||
}
|
||||
req.session.email = user.email;
|
||||
|
|
Loading…
Reference in a new issue