mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-17 00:59:56 +08:00
feat: 新增验证码配置开关
This commit is contained in:
@@ -45,6 +45,7 @@ export interface RouteItem {
|
||||
export interface AccountLoginReq {
|
||||
username: string
|
||||
password: string
|
||||
unCaptcha: boolean
|
||||
captcha: string
|
||||
uuid: string
|
||||
}
|
||||
|
@@ -5,6 +5,11 @@ export type * from './type'
|
||||
|
||||
const BASE_URL = '/captcha'
|
||||
|
||||
/** @desc 获取图片验证码 */
|
||||
export function getCaptchaConfig() {
|
||||
return http.get<boolean>(`${BASE_URL}/config`)
|
||||
}
|
||||
|
||||
/** @desc 获取图片验证码 */
|
||||
export function getImageCaptcha() {
|
||||
return http.get<T.ImageCaptchaResp>(`${BASE_URL}/image`)
|
||||
|
@@ -316,6 +316,11 @@ export interface SecurityConfig {
|
||||
PASSWORD_REQUIRE_SYMBOLS: OptionResp
|
||||
}
|
||||
|
||||
/** 安全配置类型 */
|
||||
export interface CaptchaSetting {
|
||||
NEED_CAPTCHA: OptionResp
|
||||
}
|
||||
|
||||
/** 绑定三方账号信息 */
|
||||
export interface BindSocialAccountRes {
|
||||
source: string
|
||||
|
Reference in New Issue
Block a user