initializing user

This commit is contained in:
counter 2023-01-16 21:02:46 -08:00
parent eccf511385
commit f7403e4203

1
api.js
View file

@ -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;