mirror of
https://github.com/wassname/talk.git
synced 2026-08-01 13:00:55 +08:00
[next] Email (#2261)
* feat: suspending, banning, now propogation * feat: added email rendering + localization support * fix: fix related to lib * refactor: moved juicer to queue task * refactor: cleanup of job processor * refactor: improved error messaging around failed email * feat: initial forgot passwor impl * fix: fixed rebase errors * feat: send back Content-Language header with requests * feat: added ban email * feat: implemented forgotten password API * fix: linting * feat: support more emails * fix: promise patches * feat: initial confirm email API * feat: added rate limiting * feat: added URL support * feat: added email docs * fix: updated docs * chore: documentation review * fix: fixed build bug * feat: implement forgot password in auth popup * test: add tests + fixes * chore: rename StatelessComponent to FunctionComponent * fix: types and test fixes * chore: upgrade deps * fix: THANK YOU TESTS FOR SAVING MY A** * chore: reorder imports * chore: remove obsolete ! * feat: implement accounts bundle * refactor: review suggestion * fix: rebase upgrade error * fix: rebase bug * feat: reset password link support * test: add tests for account password reset page * fix: remove redirect uri * fix: revert local state changes
This commit is contained in:
@@ -10,7 +10,8 @@ export enum ERROR_CODES {
|
||||
STORY_CLOSED = "STORY_CLOSED",
|
||||
|
||||
/**
|
||||
* COMMENTING_DISABLED is used when submitting a comment while commenting has been disabled.
|
||||
* COMMENTING_DISABLED is used when submitting a comment while commenting has
|
||||
* been disabled.
|
||||
*/
|
||||
COMMENTING_DISABLED = "COMMENTING_DISABLED",
|
||||
|
||||
@@ -20,7 +21,8 @@ export enum ERROR_CODES {
|
||||
COMMENT_BODY_TOO_SHORT = "COMMENT_BODY_TOO_SHORT",
|
||||
|
||||
/**
|
||||
* COMMENT_BODY_EXCEEDS_MAX_LENGTH is used when a submitted comment body exceeds the maximum length.
|
||||
* COMMENT_BODY_EXCEEDS_MAX_LENGTH is used when a submitted comment body
|
||||
* exceeds the maximum length.
|
||||
*/
|
||||
COMMENT_BODY_EXCEEDS_MAX_LENGTH = "COMMENT_BODY_EXCEEDS_MAX_LENGTH",
|
||||
|
||||
@@ -30,6 +32,12 @@ export enum ERROR_CODES {
|
||||
*/
|
||||
STORY_URL_NOT_PERMITTED = "STORY_URL_NOT_PERMITTED",
|
||||
|
||||
/**
|
||||
* URL_NOT_PERMITTED is used when a given URL is provided that can not be
|
||||
* matched to the Tenant.
|
||||
*/
|
||||
URL_NOT_PERMITTED = "URL_NOT_PERMITTED",
|
||||
|
||||
/**
|
||||
* TOKEN_NOT_FOUND is used when a Token is referenced by ID but can not be
|
||||
* found to be associated with the given User.
|
||||
@@ -159,8 +167,8 @@ export enum ERROR_CODES {
|
||||
TENANT_INSTALLED_ALREADY = "TENANT_INSTALLED_ALREADY",
|
||||
|
||||
/**
|
||||
* USER_NOT_ENTITLED is returned when a user attempts to perform an action that
|
||||
* they are not entitled to.
|
||||
* USER_NOT_ENTITLED is returned when a user attempts to perform an action
|
||||
* that they are not entitled to.
|
||||
*/
|
||||
USER_NOT_ENTITLED = "USER_NOT_ENTITLED",
|
||||
|
||||
@@ -222,4 +230,28 @@ export enum ERROR_CODES {
|
||||
* is not permitted if they are banned.
|
||||
*/
|
||||
USER_BANNED = "USER_BANNED",
|
||||
|
||||
/**
|
||||
* INTEGRATION_DISABLED is returned when an operation is attempted against an
|
||||
* integration that has been disabled.
|
||||
*/
|
||||
INTEGRATION_DISABLED = "INTEGRATION_DISABLED",
|
||||
|
||||
/**
|
||||
* PASSWORD_RESET_TOKEN_EXPIRED is returned when a given password reset token has
|
||||
* expired.
|
||||
*/
|
||||
PASSWORD_RESET_TOKEN_EXPIRED = "PASSWORD_RESET_TOKEN_EXPIRED",
|
||||
|
||||
/**
|
||||
* EMAIL_CONFIRM_TOKEN_EXPIRED is returned when a given email confirmation
|
||||
* token has expired.
|
||||
*/
|
||||
EMAIL_CONFIRM_TOKEN_EXPIRED = "EMAIL_CONFIRM_TOKEN_EXPIRED",
|
||||
|
||||
/**
|
||||
* RATE_LIMIT_EXCEEDED is returned when an operation is performed too many
|
||||
* times by the same user.
|
||||
*/
|
||||
RATE_LIMIT_EXCEEDED = "RATE_LIMIT_EXCEEDED",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user