Optimize two-factor api. Add remove two-factor api.
This commit is contained in:
@@ -42,6 +42,6 @@ data class LoginParam(
|
||||
* @author FatttSnake, fatttsnake@gmail.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Schema(description = "二步验证码")
|
||||
@Schema(description = "双因素验证码")
|
||||
val twoFactorCode: String?
|
||||
) : CaptchaCodeParam()
|
||||
@@ -0,0 +1,23 @@
|
||||
package top.fatweb.oxygen.api.param.permission
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema
|
||||
import jakarta.validation.constraints.NotBlank
|
||||
|
||||
/**
|
||||
* Remove two-factor parameters
|
||||
*
|
||||
* @author FatttSnake, fatttsnake@gmail.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Schema(description = "移除双因素请求参数")
|
||||
data class TwoFactorRemoveParam(
|
||||
/**
|
||||
* Code
|
||||
*
|
||||
* @author FatttSnake, fatttsnake@gmail.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Schema(description = "验证码")
|
||||
@field:NotBlank(message = "Code can not be blank")
|
||||
val code: String?
|
||||
)
|
||||
@@ -9,7 +9,7 @@ import jakarta.validation.constraints.NotBlank
|
||||
* @author FatttSnake, fatttsnake@gmail.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Schema(description = "验证二步验证请求参数")
|
||||
@Schema(description = "验证双因素请求参数")
|
||||
data class TwoFactorValidateParam(
|
||||
/**
|
||||
* Code
|
||||
|
||||
@@ -12,7 +12,7 @@ import top.fatweb.oxygen.api.annotation.Trim
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Trim
|
||||
@Schema(description = "二步验证设置请求参数")
|
||||
@Schema(description = "双因素设置请求参数")
|
||||
data class TwoFactorSettingsParam(
|
||||
/**
|
||||
* Issuer
|
||||
|
||||
Reference in New Issue
Block a user