You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
745 B
19 lines
745 B
// const uModel = require('./src/models/users');
|
|
const mongoDB = 'mongodb+srv://admin:admin@cluster0.hrgvn.mongodb.net/LegendaryLeague?retryWrites=true&w=majority';
|
|
const mongoose = require('mongoose');
|
|
mongoose.Promise = global.Promise;
|
|
mongoose.connect(mongoDB);
|
|
const {LeagueAPI} = require('./public/leagueAPI');
|
|
const {_Crypto} = require('./public/cryptoLib');
|
|
(async ()=>
|
|
{
|
|
|
|
// var RiotExists = await new LeagueAPI().verifyUserName('hc12', 'EUW');
|
|
// console.log(RiotExists)
|
|
const crypto = await new _Crypto('a@a.pt', 'aA123456').bouncer();
|
|
console.log(crypto)
|
|
// const Hash = crypto.hash();
|
|
// const eHash = crypto.eHash();
|
|
// const isNew = await crypto.isNew(eHash);
|
|
// console.log(Hash, eHash, isNew)
|
|
})() |