authorizer/server/validators/verification_requests.go
2022-05-30 11:54:16 +05:30

13 lines
480 B
Go

package validators
import "github.com/authorizerdev/authorizer/server/constants"
// IsValidVerificationIdentifier validates verification identifier that is used to identify
// the type of verification request
func IsValidVerificationIdentifier(identifier string) bool {
if identifier != constants.VerificationTypeBasicAuthSignup && identifier != constants.VerificationTypeForgotPassword && identifier != constants.VerificationTypeUpdateEmail {
return false
}
return true
}