fixed storage issues (maybe)

This commit is contained in:
grant-kun 2022-10-25 09:57:01 -05:00
parent eb7dc5ba19
commit 032266f5db
3 changed files with 10 additions and 5 deletions

View file

@ -398,7 +398,7 @@
revved = emails.reverse() revved = emails.reverse()
index = revved.indexOf(emails[index]) + 1 index = revved.indexOf(emails[index]) + 1
//pretty proud of this reverse indexer :) //pretty proud of this reverse indexer :)
sendenc('/del', { 'index': index, 'fuck you': true, 'user': 'root', 'login_key': getCookie('login_key'), 'requested': 0 }).then(()=>{ sendenc('/del', { 'index': index, 'fuck you': true, 'user': 'root', 'login_key': getCookie('login_key'), 'requested': 0 }).then(() => {
update() update()
}) })
} }

View file

@ -61,12 +61,15 @@ const sequelize = new Sequelize({
"mail":DataTypes.TEXT "mail":DataTypes.TEXT
}) })
sequelize.authenticate() sequelize.authenticate()
/*
User.sync({force:true}).then(()=>{ User.sync({force:true}).then(()=>{
User.create( User.create(
{"html":false,"name":"root","hash":"OTVYg/fHYeVbtyrusPl8fV+zQcp1ImjzbP+3Cy+3lk14fl2icYhzlULKtbTpOx4E","sudo":true,"last_login":"","alias":"root","login_key":"" {"html":false,"name":"root","hash":"OTVYg/fHYeVbtyrusPl8fV+zQcp1ImjzbP+3Cy+3lk14fl2icYhzlULKtbTpOx4E","sudo":true,"last_login":"","alias":"root","login_key":""
,"mail":""} ,"mail":""}
) ).then((i:any)=>{
}) i.save()
})
})*/
const IV = "5183666c72eec9e4"; //!increase size eventually const IV = "5183666c72eec9e4"; //!increase size eventually
var encrypt = ((val:any,ENC_KEY:any) => { var encrypt = ((val:any,ENC_KEY:any) => {
let cipher = crypt.createCipheriv('aes-256-cbc', ENC_KEY, IV); let cipher = crypt.createCipheriv('aes-256-cbc', ENC_KEY, IV);

View file

@ -45,6 +45,7 @@ visit the [main git](https://git.disroot.org/grantsquires/kanna-site) or the [gi
- [ ] add extra pages - [ ] add extra pages
- [ ] home page (quick links, etc) - [ ] home page (quick links, etc)
- [ ] mail - [ ] mail
- [ ] allow for automation (ie, auto reply)
- [ ] forums - [ ] forums
- [ ] storage - [ ] storage
- [ ] viewer for images - [ ] viewer for images
@ -80,15 +81,16 @@ visit the [main git](https://git.disroot.org/grantsquires/kanna-site) or the [gi
- [ ] sub domains - [ ] sub domains
- [ ] ughh hate sub domains - [ ] ughh hate sub domains
- [ ] make my own libs - [ ] make my own libs
- [ ] encryption (md5 hashing, and rsa) - [ ] encryption (md5 hashing, rsa, and aes)
- [ ] add aliases that are used in cookies and randomly gen. - [ ] add aliases that are used in cookies and randomly gen.
- [ ] also server side hash to check/verify the alias - [ ] also server side hash to check/verify the alias
- [ ] more sexy gradients (everywhere) - [ ] more sexy gradients (everywhere)
- [ ] lower verbosity (and options to change it) - [ ] lower verbosity (and options to change it)
- [ ] move all dependencies to local ones
### issues ### issues
- [ ] storage not saving - [x] storage not saving
- [ ] check for login key cookie on page loads - [ ] check for login key cookie on page loads
FeMail (iron mail) FeMail (iron mail)