Optimize two-factor api. Add remove two-factor api.

This commit is contained in:
2024-03-01 15:35:32 +08:00
parent b52ce7f5e8
commit 570f5a8ac6
20 changed files with 109 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ import io.swagger.v3.oas.annotations.media.Schema
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
*/
@Schema(description = "二步验证返回参数")
@Schema(description = "双因素返回参数")
data class TwoFactorVo (
/**
* QR code SVG as base64

View File

@@ -38,7 +38,7 @@ data class UserWithInfoVo(
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
*/
@Schema(description = "启用二步验证", example = "true")
@Schema(description = "启用双因素", example = "true")
val twoFactor: Boolean?,
/**

View File

@@ -49,7 +49,7 @@ data class UserWithPasswordRoleInfoVo(
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
*/
@Schema(description = "启用二步验证", example = "true")
@Schema(description = "启用双因素", example = "true")
val twoFactor: Boolean?,
/**

View File

@@ -38,7 +38,7 @@ data class UserWithPowerInfoVo(
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
*/
@Schema(description = "启用二步验证", example = "true")
@Schema(description = "启用双因素验证", example = "true")
val twoFactor: Boolean?,
/**

View File

@@ -40,7 +40,7 @@ data class UserWithRoleInfoVo(
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
*/
@Schema(description = "启用二步验证", example = "true")
@Schema(description = "启用双因素", example = "true")
val twoFactor: Boolean?,
/**

View File

@@ -8,7 +8,7 @@ import io.swagger.v3.oas.annotations.media.Schema
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
*/
@Schema(description = "二步验证设置返回参数")
@Schema(description = "双因素设置返回参数")
data class TwoFactorSettingsVo(
/**
* Issuer