Commit Graph
33 Commits
Author SHA1 Message Date
steve greenandCohee 46c91bec67 Update server.js to trust UserAccounts securely (#2447)
* Update server.js to trust UserAccounts securely

* Update zh-cn.json btw

* Clarify security logic

* update logic

* Fix filtering of enabled users.

* Fix account name logging

* More friendly log

* Even friendlier message

* Revert deleted keys

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-07-03 21:24:03 +03:00
Cohee e66b270811 Change backups to be user data scoped 2024-05-28 17:49:34 +03:00
Cohee 3b153a6c9b Check that path exists before serving 2024-04-27 21:54:28 +03:00
Cohee 4c9d52422b [chore] ESLint and JSDoc 2024-04-26 22:46:13 +03:00
Cohee 1b60e4a013 Init user storage module before server listening 2024-04-26 14:09:40 +03:00
Cohee 71f41d5233 Fix server crash in auto login 2024-04-23 21:11:47 +03:00
Isaac McFadyen 15a8adb0b9 Changed fs.cpSync to use recursive copying 2024-04-18 16:04:04 -04:00
Isaac McFadyen 3822ae9356 Switched fs.renameSync to fs.copyFileSync 2024-04-18 15:50:27 -04:00
Cohee 3dcea41c4e Preserve a query string when redirecting to and from login 2024-04-16 18:44:11 +03:00
Cohee f947c1304a Disable TTL on user accounts.
The biggest skill issue so far.
2024-04-16 02:49:30 +03:00
Cohee b340863d52 Auto-extend session if loading the home page 2024-04-13 19:12:50 +03:00
Cohee 1a372abaff Customizable avatars for users 2024-04-13 17:52:37 +03:00
Cohee 59657766b5 Switch password hashing function to scrypt 2024-04-13 15:40:47 +03:00
Cohee 53386b35c9 Make Reset account functional 2024-04-13 00:11:20 +03:00
Cohee 7183416d1f Check account protection status on startup 2024-04-12 22:04:20 +03:00
Cohee dcbeab0aef Fix absolute paths for data root. Allow setting data root via console args. 2024-04-12 19:53:46 +03:00
Cohee 396eeca73a Change default user handle. Use async template renderer 2024-04-12 00:35:51 +03:00
Cohee 1990a2d9bd Add user snapshot settings management 2024-04-11 01:44:48 +03:00
Cohee c92df1168d Implement change display name 2024-04-11 00:40:01 +03:00
Cohee 2b29e14e9f Reset settings option 2024-04-10 03:29:38 +03:00
Cohee 09b44075ed User profile view 2024-04-10 02:09:38 +03:00
Cohee 31cc6e51b5 Add user backups download 2024-04-09 22:43:47 +03:00
Cohee 411a8ef8a7 Enable CSRF for public endpoints. Split users module. Add rate limiter. 2024-04-09 21:58:16 +03:00
Cohee 72792ae9f9 Basic account management 2024-04-08 02:38:20 +03:00
Cohee 3f3e23420d Working login flow 2024-04-07 23:08:19 +03:00
Cohee 0230177d27 Optimize server user storage use 2024-04-07 20:36:07 +03:00
Cohee 6be86be0a7 Save user session to cookies 2024-04-07 19:12:22 +03:00
Cohee 0f105e0300 Fix circular deps, add Helmet https://helmetjs.github.io/ 2024-04-07 18:11:23 +03:00
Cohee c6ffe4502a Add user management endpoints 2024-04-07 17:44:40 +03:00
Cohee b07aef02c7 Persist CSRF and cookie secrets across server launches 2024-04-07 16:41:23 +03:00
Cohee 11193896b2 Add data migration procedure 2024-04-07 03:01:55 +03:00
Cohee b07a6a9a78 Update all endpoints to use user directories 2024-04-07 01:47:07 +03:00
Cohee cd5aec7368 Split user directories from public, part 1 2024-04-06 20:09:39 +03:00