aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrant-kun <[email protected]>2022-10-25 09:57:01 -0500
committergrant-kun <[email protected]>2022-10-25 09:57:01 -0500
commit032266f5db33a95af25ee81d8beba74ac68858da (patch)
tree82ec25767b2456e850c5fe70fe934bcf2c2d4adf
parenteb7dc5ba1945270f632657df36a621c253e91faa (diff)
fixed storage issues (maybe)
-rw-r--r--html/mail.html2
-rw-r--r--index.ts7
-rw-r--r--readme.md6
3 files changed, 10 insertions, 5 deletions
diff --git a/html/mail.html b/html/mail.html
index 5502d15..89525a6 100644
--- a/html/mail.html
+++ b/html/mail.html
@@ -398,7 +398,7 @@
revved = emails.reverse()
index = revved.indexOf(emails[index]) + 1
//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()
})
}
diff --git a/index.ts b/index.ts
index 7fb6e39..617f889 100644
--- a/index.ts
+++ b/index.ts
@@ -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);
diff --git a/readme.md b/readme.md
index 57aaf01..6c6db7e 100644
--- a/readme.md
+++ b/readme.md
@@ -45,6 +45,7 @@ visit the [main git](https://git.disroot.org/grantsquires/kanna-site) or the [gi
- [ ] add extra pages
- [ ] home page (quick links, etc)
- [ ] mail
+ - [ ] allow for automation (ie, auto reply)
- [ ] forums
- [ ] storage
- [ ] viewer for images
@@ -80,15 +81,16 @@ visit the [main git](https://git.disroot.org/grantsquires/kanna-site) or the [gi
- [ ] sub domains
- [ ] ughh hate sub domains
- [ ] 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.
- [ ] also server side hash to check/verify the alias
- [ ] more sexy gradients (everywhere)
- [ ] lower verbosity (and options to change it)
+ - [ ] move all dependencies to local ones
### issues
- - [ ] storage not saving
+ - [x] storage not saving
- [ ] check for login key cookie on page loads
FeMail (iron mail)