Merge pull request #1202 from DEVTomatoCake/fix/password-mfacode-schemas
Fixes for password, mfa code & email validation schemas
This commit is contained in:
commit
3a63ae89cc
Binary file not shown.
Binary file not shown.
@ -21,5 +21,9 @@ export interface ApplicationAuthorizeSchema {
|
|||||||
guild_id: string;
|
guild_id: string;
|
||||||
permissions: string;
|
permissions: string;
|
||||||
captcha_key?: string;
|
captcha_key?: string;
|
||||||
|
/**
|
||||||
|
* @minLength 6
|
||||||
|
* @maxLength 6
|
||||||
|
*/
|
||||||
code?: string; // 2fa code
|
code?: string; // 2fa code
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,5 +17,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface BackupCodesChallengeSchema {
|
export interface BackupCodesChallengeSchema {
|
||||||
|
/**
|
||||||
|
* @minLength 1
|
||||||
|
* @maxLength 72
|
||||||
|
*/
|
||||||
password: string;
|
password: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,6 +18,10 @@
|
|||||||
|
|
||||||
export interface LoginSchema {
|
export interface LoginSchema {
|
||||||
login: string;
|
login: string;
|
||||||
|
/**
|
||||||
|
* @minLength 1
|
||||||
|
* @maxLength 72
|
||||||
|
*/
|
||||||
password: string;
|
password: string;
|
||||||
undelete?: boolean;
|
undelete?: boolean;
|
||||||
captcha_key?: string;
|
captcha_key?: string;
|
||||||
|
|||||||
@ -17,6 +17,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface MfaCodesSchema {
|
export interface MfaCodesSchema {
|
||||||
|
/**
|
||||||
|
* @minLength 1
|
||||||
|
* @maxLength 72
|
||||||
|
*/
|
||||||
password: string;
|
password: string;
|
||||||
regenerate?: boolean;
|
regenerate?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,6 +17,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface PasswordResetSchema {
|
export interface PasswordResetSchema {
|
||||||
|
/**
|
||||||
|
* @minLength 1
|
||||||
|
* @maxLength 72
|
||||||
|
*/
|
||||||
password: string;
|
password: string;
|
||||||
token: string;
|
token: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,5 +17,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface TotpDisableSchema {
|
export interface TotpDisableSchema {
|
||||||
|
/**
|
||||||
|
* @minLength 6
|
||||||
|
* @maxLength 6
|
||||||
|
*/
|
||||||
code: string;
|
code: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,7 +17,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface TotpEnableSchema {
|
export interface TotpEnableSchema {
|
||||||
|
/**
|
||||||
|
* @minLength 1
|
||||||
|
* @maxLength 72
|
||||||
|
*/
|
||||||
password: string;
|
password: string;
|
||||||
|
/**
|
||||||
|
* @minLength 6
|
||||||
|
* @maxLength 6
|
||||||
|
*/
|
||||||
code?: string;
|
code?: string;
|
||||||
secret?: string;
|
secret?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,9 +25,24 @@ export interface UserModifySchema {
|
|||||||
bio?: string;
|
bio?: string;
|
||||||
accent_color?: number;
|
accent_color?: number;
|
||||||
banner?: string | null;
|
banner?: string | null;
|
||||||
|
/**
|
||||||
|
* @minLength 1
|
||||||
|
* @maxLength 72
|
||||||
|
*/
|
||||||
password?: string;
|
password?: string;
|
||||||
|
/**
|
||||||
|
* @minLength 1
|
||||||
|
* @maxLength 72
|
||||||
|
*/
|
||||||
new_password?: string;
|
new_password?: string;
|
||||||
|
/**
|
||||||
|
* @minLength 6
|
||||||
|
* @maxLength 6
|
||||||
|
*/
|
||||||
code?: string;
|
code?: string;
|
||||||
|
/**
|
||||||
|
* @TJS-format email
|
||||||
|
*/
|
||||||
email?: string;
|
email?: string;
|
||||||
/**
|
/**
|
||||||
* @minLength 4
|
* @minLength 4
|
||||||
|
|||||||
Reference in New Issue
Block a user