Commit Graph

61 Commits

Author SHA1 Message Date
Cohee
abe51682c8 [wip] Add global extensions 2024-12-07 17:10:26 +02:00
Cohee
a32dd436d7 Node: Replace global with globalThis 2024-10-18 09:13:25 +00:00
Cohee
a0889a15fd Explicitly import node process 2024-10-11 10:43:29 +03:00
Cohee
a0e6030836 Simplify node imports 2024-10-11 00:28:17 +03:00
Cohee
1616e7e067 Explicitly import Buffer. Specify jsdoc local extensions 2024-10-10 23:36:22 +03:00
Cohee
d52b4fbbde Node: Migrate to ES Modules 2024-10-10 22:37:22 +03:00
QuantumEntangledAndy
ad316c6d78 [chore] Use same basic code logic in user as in basicAuth 2024-10-09 15:09:10 +07:00
QuantumEntangledAndy
06a7bdd3ce Only allow login via basic per-user if user password is set 2024-10-09 15:04:28 +07:00
Cohee
15436d0f2a [chore] Strict equality check 2024-10-09 02:13:23 +03:00
Cohee
fe8ffe5be8 [bug] Fix basic auto-logins to disabled users 2024-10-09 02:12:20 +03:00
Cohee
a1352d817a [bug] Don't try per user auto-login if basic auth disabled 2024-10-09 02:04:47 +03:00
Cohee
0ada5407ee [bug] Fix login attempts to disabled users 2024-10-09 01:54:56 +03:00
Cohee
07d6808e4e [chore] Rename local variable, use strict comparison. 2024-10-09 01:46:07 +03:00
Cohee
3e9d0cc1ad [chore] Remove debug console log 2024-10-09 01:42:51 +03:00
Cohee
3422303882 [chore] Rename local variable 2024-10-09 01:40:49 +03:00
Cohee
b9375ed7ea Rename PERUSER => PER_USER 2024-10-09 01:37:34 +03:00
QuantumEntangledAndy
1cda7003d1 Add a noauto query param to login 2024-10-07 09:17:43 +07:00
QuantumEntangledAndy
329469021e Address comments 2024-10-06 18:20:30 +07:00
QuantumEntangledAndy
71236e5e8c eslint 2024-10-06 15:06:05 +07:00
QuantumEntangledAndy
69a604044d Add additional login methods 2024-10-06 14:35:03 +07:00
Cohee
6cab3c7d20 Don't silence migration errors + add backups
Closes #2900
2024-09-25 13:09:13 +00:00
Cohee
c340766bb6 Use prefix in the migrated sysprompts 2024-09-22 21:06:03 +03:00
Cohee
4b235f0b31 Migrate only unique and non-default instruct prompts 2024-09-20 01:02:13 +03:00
Cohee
0f2daede51 Merge branch 'staging' into sysprompt-divorce 2024-09-18 23:40:46 +03:00
Cohee
2f7d694f54 Migrate sysprompts from instruct 2024-09-17 11:33:24 +00:00
Cohee
73ee869749 Load sysprompts from content manager 2024-09-17 10:38:14 +00:00
Cohee
8ec509c777 Unify default user avatars
Closes #2862
2024-09-16 22:08:40 +03:00
Cohee
c2057da348 Move transformers.js model cache under the data root 2024-08-16 11:59:41 +00:00
steve green
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