Commit Graph

1417 Commits

Author SHA1 Message Date
Julian Lam
ca6642d1b7 test: support for anyOf and oneOf 2023-01-30 12:35:29 -05:00
Julian Lam
bff1bb6d07 fix: re-login on email change 2023-01-30 12:35:29 -05:00
Julian Lam
bb5d8ea851 fix: breaking test for email confirmation API call 2023-01-30 12:35:29 -05:00
Julian Lam
9b06d41564 test: re-enable read API schema tests 2023-01-30 12:35:29 -05:00
Julian Lam
42144f0df2 test: skip i18n tests if ref branch when present is not develop 2023-01-25 12:04:28 -05:00
Julian Lam
2bc3cf1aa9 Merge branch 'develop' into bootstrap5 2023-01-23 16:07:15 -05:00
Julian Lam
c99728e0c4 Merge branch 'master' into develop 2023-01-23 09:59:22 -05:00
Julian Lam
f295174e07 test: fix broken test 2023-01-23 09:58:51 -05:00
Julian Lam
38175b5e71 test: fix broken test 2023-01-21 14:34:01 -05:00
Julian Lam
61bab38b2b Merge branch 'develop' into bootstrap5 2023-01-19 15:51:53 -05:00
Julian Lam
eab5ab7ff9 Merge branch 'master' into develop 2023-01-19 15:39:02 -05:00
Julian Lam
459bc52338 fix: #11136, tests, and returning the proper number of arrays 2023-01-18 15:08:35 -05:00
Barış Soner Uşaklı
3e7633e791 test: helper test fix 2023-01-11 16:52:25 -05:00
Julian Lam
69806662e6 Session Timeout if "Remember Me" is not checked (#11125)
* fix: convert loginDays and loginSeconds to number inputs

* feat: configurable session timeout for when "Remember Me" is not checked

closes #11124

* test: addition tests to check loginDays and sessionDuration settings

* test: also test loginSeconds override
2023-01-05 14:10:02 -05:00
Julian Lam
fecdab8b6f refactor: helpers.loginUser to be fully async 2023-01-04 16:25:47 -05:00
Julian Lam
a344e6ec0c Fix for #11119, restore password reset rate limiting (#11120)
* chore: incrementing version number - v2.8.1

* chore: update changelog for v2.8.1

* fix: accidental clearing of reset rate limiting on reset send

* test: move user reset tests to its own file, add failing test for user reset locks

* fix: #11119, counter attempted flooding of user reset route

* test: fix password reset socket test to check for error now

* test: same user sending multiple reset emails

should work after waiting the correct amount of time

* lint: fixes

* chore: rename outdated `cleanTokensAndUids` method

* test: no need to create user for new test

Co-authored-by: Misty Release Bot <deploy@nodebb.org>
Co-authored-by: Barış Soner Uşaklı <barisusakli@gmail.com>
2023-01-04 11:24:46 -05:00
Barış Soner Uşaklı
586eed1407 fix: vulnerability in socket.io nested namespaces (#11117) 2022-12-30 09:49:22 -05:00
Barış Soner Uşaklı
1ea9481af6 fix: lock post/reply similar to user.create 2022-12-25 15:05:15 -05:00
Julian Lam
2144650dd5 Merge remote-tracking branch 'origin/develop' into bootstrap5 2022-12-21 17:20:42 -05:00
Barış Soner Uşaklı
c2bb2b30be test: dont try to load admin upload routes 2022-12-07 10:08:16 -05:00
Julian Lam
378fff2714 Merge branch 'develop' into bootstrap5 2022-11-16 12:18:28 -05:00
Julian Lam
10ba7b9ced Merge branch 'master' into develop 2022-11-16 12:16:26 -05:00
Barış Soner Uşaklı
abcfb63126 fix: #11044, allow banned users to post
if given privileges
2022-11-15 17:53:15 -05:00
Julian Lam
4d88ddb20a fix: tests broken by commit to fix #11042 2022-11-15 14:35:30 -05:00
Barış Soner Uşaklı
7bd0ccabd3 Merge branch 'develop' into bootstrap5 2022-11-11 16:24:32 -05:00
Barış Soner Uşaklı
3c85b944e3 feat: allow groups to be exempt from maintenance mode
closes #11030
2022-11-11 16:23:00 -05:00
Julian Lam
aaeb0be0d8 Merge branch 'develop' into bootstrap5 2022-11-09 13:31:50 -05:00
Julian Lam
892ac2eb20 Merge branch 'master' into develop 2022-11-09 13:31:31 -05:00
Julian Lam
2f9d8c350e fix: pass csrf_token into calls to /register/abort, #11017 2022-11-09 13:20:28 -05:00
Julian Lam
515af200ee Merge branch 'develop' into bootstrap5 2022-11-09 12:17:21 -05:00
Julian Lam
97d8b53fd3 Merge branch 'master' into develop 2022-11-09 12:15:24 -05:00
Barış Soner Uşaklı
06d1539137 test: fix tests again 2022-10-29 17:40:33 -04:00
Barış Soner Uşaklı
c833d3cdc4 test: fix test 2022-10-29 17:05:16 -04:00
Julian Lam
6da286c22b test: abort controller for interstitials 2022-10-24 15:33:52 -04:00
Julian Lam
ddf7537301 test: fix tests for changes to membershipBtn helper 2022-10-24 14:57:00 -04:00
Julian Lam
96b46411b1 Merge branch 'master' into develop 2022-10-18 15:38:36 -04:00
Julian Lam
c1081f7039 Merge branch 'master' into bootstrap5 2022-10-18 15:21:20 -04:00
Julian Lam
9c576a0758 Email confirmation QOL updates (#10987)
* breaking: remove `SocketUser.emailConfirm`, re: #10954

* chore: move email confirmation related configs to own section in Settings > Email

* feat: new user email method `getValidationExpiry`, returns expiration in ms.. probably.

* fix: bug where `user.email.isValidationPending` returned an u nexpected non-boolean value if there was no confirmation pending (only when checking email as well)

* fix: update getValidationExpiry to return ms

* test: use emailConfirmInterval for tests, for now

* fix: throw friendly error when attempting an email change within email confirmation window

* feat: new config option `emailConfirmExpiry` in days, governs how long the confirm link is good for

* test: additional tests for user email methods

* fix: add back missing handling of  option

* test: fix tests
2022-10-18 15:12:13 -04:00
Julian Lam
c285f72e12 fix: bug that allowed for bypass of GDPR interstitial on SSO registrations simply by cancelling the form 2022-10-11 10:46:12 -04:00
Barış Soner Uşaklı
9d0b1d5092 refactor: remove unused code 2022-10-08 20:03:35 -04:00
Barış Soner Uşaklı
61d32bdebb fix: category ordering add test 2022-10-03 09:41:40 -04:00
Barış Soner Uşaklı
177d904812 fix: category ordering add test 2022-10-03 09:41:08 -04:00
Barış Soner Uşaklı
389a2df9bf fix: category ordering add test 2022-10-03 09:40:54 -04:00
Julian Lam
d45a34fdb8 test: fix tests so that when user.create is called, email is set prior to confirmation 2022-09-27 14:34:01 -04:00
Julian Lam
ee77ce0789 chore: remove deprecated socket.io user export methods [breaking] 2022-09-27 13:34:00 -04:00
Julian Lam
1d63fc469a chore: remove deprecated old routes for user data exports [breaking] 2022-09-27 11:23:52 -04:00
Barış Soner Uşaklı
6b4e00fd47 test: fix profile pic test 2022-09-21 13:01:00 -04:00
Barış Soner Uşaklı
bfb63061c7 test: fix theme test 2022-09-21 12:49:15 -04:00
Julian Lam
dcfcc5ea2c Merge remote-tracking branch 'origin/develop' into bootstrap5 2022-09-21 12:12:27 -04:00
Julian Lam
6391f77b01 Merge remote-tracking branch 'origin/master' into develop 2022-09-20 14:04:02 -04:00