🐛 fix(user): Update notification and verify code settings
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// @ts-ignore
|
||||
|
||||
|
||||
// API 更新时间:
|
||||
// API 唯一标识:
|
||||
import * as auth from './auth';
|
||||
|
||||
@@ -32,7 +32,6 @@ export async function appleLoginCallback(
|
||||
return request<API.Response & { data?: any }>('/v1/auth/oauth/callback/apple', {
|
||||
method: 'POST',
|
||||
data: formData,
|
||||
requestType: 'form',
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
+7
-3
@@ -152,6 +152,7 @@ declare namespace API {
|
||||
invite: InviteConfig;
|
||||
currency: CurrencyConfig;
|
||||
subscribe: SubscribeConfig;
|
||||
verify_code: VerifyCodeConfig;
|
||||
oauth_methods: string[];
|
||||
};
|
||||
|
||||
@@ -579,9 +580,6 @@ declare namespace API {
|
||||
referer_id: number;
|
||||
enable: boolean;
|
||||
is_admin?: boolean;
|
||||
valid_email: boolean;
|
||||
enable_email_notify: boolean;
|
||||
enable_telegram_notify: boolean;
|
||||
enable_balance_notify: boolean;
|
||||
enable_login_notify: boolean;
|
||||
enable_subscribe_notify: boolean;
|
||||
@@ -686,6 +684,12 @@ declare namespace API {
|
||||
enable_reset_password_verify: boolean;
|
||||
};
|
||||
|
||||
type VerifyCodeConfig = {
|
||||
verify_code_expire_time: number;
|
||||
verify_code_limit: number;
|
||||
verify_code_interval: number;
|
||||
};
|
||||
|
||||
type VerifyConfig = {
|
||||
turnstile_site_key: string;
|
||||
turnstile_secret: string;
|
||||
|
||||
Reference in New Issue
Block a user