KernelDeimos
c2f1694107
Require password entry to disable 2FA
2024-05-13 16:00:07 -04:00
KernelDeimos
23215bd6f7
Move change_email/start to password-protected endpoint
2024-05-13 16:00:07 -04:00
KernelDeimos
1493cacb69
Add rate-limiting to new password change endpoint
2024-05-13 16:00:07 -04:00
KernelDeimos
9076fddc0d
Add new password change endpoint
2024-05-13 16:00:07 -04:00
KernelDeimos
a89c9d59cf
Add UserProtectedEndpointsService
2024-05-13 16:00:07 -04:00
KernelDeimos
15dec21118
doc(backend): Document the boot sequence
...
Now that the boot sequence is better formalized it may be documented.
2024-05-13 16:00:07 -04:00
KernelDeimos
d800b12569
refactor(backend): Trigger webserver events in webserver
...
We were triggering webserver events in Kernel. This change improves
adherence to separation-of-concerns and ensures event cascading is
working as expected. This also better formalizes the boot sequence.
2024-05-13 01:05:49 -04:00
Eric Dubé
3992fe1a45
Merge pull request #384 from AtkinsSJ/progress-dialogs
...
refactor: Replace several existing progress dialogs with one configurable one
2024-05-10 12:25:32 -04:00
Eric Dubé
17e08cafce
Merge pull request #380 from AtkinsSJ/eslint-ci
...
Run ESLint on CI
2024-05-10 12:24:31 -04:00
KernelDeimos
cd2daa1910
Require email verification for contact form
2024-05-09 19:40:34 -04:00
KernelDeimos
8b6bbe003d
fix(security) Disable 2FA configure if 2FA is enabled
2024-05-09 18:04:58 -04:00
Sam Atkins
f3269693de
Stop dumping binary data to the console
...
This was freaking out and freezing the Puter server, and my entire
terminal app. XD
2024-05-09 18:28:39 +01:00
KernelDeimos
df24c663df
Invalidate email confirmation on password change
2024-05-08 22:28:41 -04:00
KernelDeimos
45e7f162a2
Add password change notification
2024-05-08 16:01:20 -04:00
Sam Atkins
8c70efa058
Suppress remaining eslint errors
...
These two seem like bugs but are unclear to me how to fix, so I've added
FIXMEs.
/puter/packages/backend/src/routers/kvstore/clearItems.js
41:32 error 'DB_MODE_WRITE' is not defined no-undef
/puter/packages/backend/src/routers/whoami.js
104:35 error 'db' is not defined no-undef
2024-05-08 18:53:36 +01:00
KernelDeimos
5890b7e7bf
Disable password reset token when email or password is changed
2024-05-07 20:18:11 -04:00
KernelDeimos
d20249f29a
Send email notifications when 2FA state changes
2024-05-06 21:13:00 -04:00
KernelDeimos
7f3e2852c6
Add rate limits
2024-05-06 16:12:54 -04:00
KernelDeimos
7fce223a6d
Fix OTP test endpoint
2024-05-06 15:40:34 -04:00
KernelDeimos
a628358c9f
Fix OTP time window
2024-05-06 15:02:14 -04:00
KernelDeimos
918eb3bb67
Put otpauth back on 9.2.4
2024-05-06 02:10:22 -04:00
KernelDeimos
ecae1997aa
Maybe this??
2024-05-06 01:58:55 -04:00
KernelDeimos
e4c7caa8ea
Worth a try
2024-05-06 01:54:02 -04:00
KernelDeimos
00c8ece07e
Finish recovery codes
2024-05-06 00:02:46 -04:00
KernelDeimos
5cbe256120
Add missing part of previous commit
2024-05-06 00:02:46 -04:00
KernelDeimos
a2a8f9de74
Fix cache state
2024-05-06 00:02:46 -04:00
KernelDeimos
3e380ba844
Add otp test endpoint and next wizard step
2024-05-06 00:02:46 -04:00
KernelDeimos
2681a78501
Use username as otp label
2024-05-06 00:02:46 -04:00
KernelDeimos
3bf7737790
Add recovery codes
2024-05-06 00:02:46 -04:00
KernelDeimos
455d3946d6
Add checkboxes and cancel action for 2FA setup
2024-05-06 00:02:46 -04:00
KernelDeimos
2dfecb5287
Add 2fa setting and complete login flow
2024-05-06 00:02:46 -04:00
KernelDeimos
d7c5c37cf8
Implement backend for 2FA
2024-05-06 00:02:46 -04:00
KernelDeimos
038373cbbc
Fix filename inconsistency that breaks Linux support
2024-05-06 00:02:33 -04:00
Didi Keke
4d30740198
fix: typographical errors 🐛
2024-05-05 08:34:50 +00:00
Didi Keke
551121524c
refactor: name from SelfhostedModule
to SelfHostedModule
🔨
2024-05-05 07:53:55 +00:00
KernelDeimos
a86106c0c1
Fix save_account token
2024-05-04 14:19:09 -04:00
Eric Dubé
4d0e6b4772
Merge pull request #336 from AtkinsSJ/app-tab-completion
...
Phoenix: Add tab-completion for command names
2024-05-03 12:39:07 -04:00
Sam Atkins
44aa4f1b0a
chore: Remove debugger calls
...
/puter/packages/phoenix/src/ansi-shell/arg-parsers/simple-parser.js
30:38 warning Unexpected 'debugger' statement no-debugger
/puter/packages/phoenix/src/ansi-shell/pipeline/Coupler.js
71:32 warning Unexpected 'debugger' statement no-debugger
2024-05-02 17:41:14 +01:00
Sam Atkins
fa7c6bee96
fix: Correct variables used in errors in sign.js
...
I couldn't figure out how to get a name for the no_suitable_app error
unfortunately, so that's just commented out.
/puter/packages/backend/src/routers/sign.js
65:74 error 'subject' is not defined no-undef
114:59 error 'subject' is not defined no-undef
2024-05-02 17:39:01 +01:00
Sam Atkins
fa3b86fa7e
chore: Amend empty blocks in upload.js
...
/puter/packages/puter-js/src/modules/FileSystem/operations/upload.js
63:22 error Empty block statement no-empty
173:22 error Empty block statement no-empty
2024-05-02 17:31:17 +01:00
Sam Atkins
52d5299374
fix: Use correct variable for version number
...
/puter/packages/backend/src/services/ComplainAboutVersionsService.js
30:36 error 'current_version' is not defined no-undef
2024-05-02 17:30:53 +01:00
Sam Atkins
8d4a1e0ed3
fix: Add missing TextEncoder to PTT
...
Solves this eslint issue:
/puter/packages/terminal/src/pty/PTT.js
35:29 error 'encoder' is not defined no-undef
2024-05-02 11:21:50 +01:00
Sam Atkins
ca65ed1258
chore: Use this
to refer to itemWatchCallbackFunctions field
...
Solves these eslint issues:
/puter/packages/puter-js/src/modules/UI.js
418:20 error 'itemWatchCallbackFunctions' is not defined no-undef
418:74 error 'itemWatchCallbackFunctions' is not defined no-undef
419:21 error 'itemWatchCallbackFunctions' is not defined no-undef
2024-05-02 11:21:50 +01:00
Sam Atkins
33785b3786
chore: Add missing imports for node:process
2024-05-02 11:21:50 +01:00
Sam Atkins
96e9c154bd
chore: Fix a couple of regex related eslint issues
...
/puter/packages/phoenix/src/puter-shell/providers/ScriptCommandProvider.js
27:38 error Unnecessary escape character: \/ no-useless-escape
/puter/packages/phoenix/src/util/wrap-text.js
24:33 error Unexpected control character(s) in regular expression: \x1b no-control-regex
2024-05-02 11:21:50 +01:00
Sam Atkins
c8a20cadbf
fix: Correct grep output when asking for line numbers
...
A couple of issues here:
- We didn't pass the line number to do_grep_line() so `i` was undefined
- Operator precedence messed with the ternary so when line numbers were
requested, the line wouldn't be output.
Found thanks to this now-solved eslint issue:
/puter/packages/phoenix/src/puter-shell/coreutils/grep.js
100:60 error 'i' is not defined no-undef
2024-05-02 11:21:50 +01:00
Sam Atkins
71f8afab9a
chore: Adjust comment for eslint
...
This was confusing its fallthrough detection:
/puter/packages/phoenix/src/puter-shell/coreutils/date.js
132:21 error Expected a 'break' statement before 'case' no-fallthrough
2024-05-02 11:21:50 +01:00
Sam Atkins
6ad8f5e06a
fix: Parse octal echo escapes
...
Found by this eslint issue:
/puter/packages/phoenix/src/puter-shell/coreutils/coreutil_lib/echo_escapes.js
107:59 error 'hexchars' is not defined no-undef
2024-05-02 11:21:50 +01:00
Sam Atkins
50d75cd2f9
refactor: Make loop condition non-constant
...
Resolves this eslint issue:
/puter/packages/phoenix/src/ansi-shell/readline/readline.js
154:33 error Unexpected constant condition no-constant-condition
2024-05-02 11:21:50 +01:00
Sam Atkins
6d895dff42
chore: Remove empty block statement
...
Resolves this eslint issue:
/puter/packages/phoenix/src/ansi-shell/parsing/PuterShellParser.js
25:9 error Empty block statement no-empty
2024-05-02 11:21:50 +01:00