mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-04 21:15:55 +01:00
* 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