forked from melod1n/fast-messenger
refactor(auth): reuse network ValidationType for validation flow
Remove duplicate auth ValidationType and use the shared network model instead. Add support for both "sms" and "2fa_sms" SMS validation values.
This commit is contained in:
@@ -2,7 +2,8 @@ package dev.meloda.fast.network
|
||||
|
||||
enum class ValidationType(val value: String) {
|
||||
APP("2fa_app"),
|
||||
SMS("2fa_sms");
|
||||
SMS("sms"),
|
||||
SMS2("2fa_sms");
|
||||
|
||||
companion object {
|
||||
fun parse(value: String): ValidationType =
|
||||
|
||||
Reference in New Issue
Block a user