Add two-factor api

This commit is contained in:
2024-02-29 19:33:26 +08:00
parent 376ef81950
commit b52ce7f5e8
31 changed files with 709 additions and 25 deletions

View File

@@ -0,0 +1,10 @@
package top.fatweb.oxygen.api.exception
/**
* Already has two-factor exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class AlreadyHasTwoFactorException : RuntimeException("Already has two-factor")

View File

@@ -0,0 +1,10 @@
package top.fatweb.oxygen.api.exception
/**
* Need two-factor code exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class NeedTwoFactorException : RuntimeException("Need two-factor code")

View File

@@ -0,0 +1,10 @@
package top.fatweb.oxygen.api.exception
/**
* No two-factor found exception
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
* @see RuntimeException
*/
class NoTwoFactorFoundException : RuntimeException("No two-factor found")