mirror of
https://github.com/trufflesecurity/xsshunter
synced 2025-02-16 05:18:36 +00:00
adding user record
This commit is contained in:
parent
9a39a2b4dc
commit
8997f7a4c4
1 changed files with 2 additions and 1 deletions
3
app.js
3
app.js
|
@ -300,7 +300,8 @@ async function get_app_server() {
|
|||
client.setCredentials(tokens);
|
||||
const oauth2 = google.oauth2({version: 'v2', auth: client});
|
||||
const googleUserProfile = await oauth2.userinfo.v2.me.get();
|
||||
email = googleUserProfile.data.email
|
||||
console.log(JSON.stringify(googleUserProfile))
|
||||
const email = googleUserProfile.data.email
|
||||
const [user, created] = await Users.findOrCreate({ where: { 'email': email } });
|
||||
if(created){
|
||||
user.path = makeRandomPath(20);
|
||||
|
|
Loading…
Add table
Reference in a new issue