diff options
author | grant-kun <[email protected]> | 2022-10-25 09:57:01 -0500 |
---|---|---|
committer | grant-kun <[email protected]> | 2022-10-25 09:57:01 -0500 |
commit | 032266f5db33a95af25ee81d8beba74ac68858da (patch) | |
tree | 82ec25767b2456e850c5fe70fe934bcf2c2d4adf /index.ts | |
parent | eb7dc5ba1945270f632657df36a621c253e91faa (diff) |
fixed storage issues (maybe)
Diffstat (limited to 'index.ts')
-rw-r--r-- | index.ts | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -61,12 +61,15 @@ const sequelize = new Sequelize({ "mail":DataTypes.TEXT }) sequelize.authenticate() +/* User.sync({force:true}).then(()=>{ User.create( {"html":false,"name":"root","hash":"OTVYg/fHYeVbtyrusPl8fV+zQcp1ImjzbP+3Cy+3lk14fl2icYhzlULKtbTpOx4E","sudo":true,"last_login":"","alias":"root","login_key":"" ,"mail":""} - ) -}) + ).then((i:any)=>{ + i.save() + }) +})*/ const IV = "5183666c72eec9e4"; //!increase size eventually var encrypt = ((val:any,ENC_KEY:any) => { let cipher = crypt.createCipheriv('aes-256-cbc', ENC_KEY, IV); |