authorizer/server/validators/verification_requests.go

13 lines
480 B
Go
Raw Normal View History

2022-05-30 06:24:16 +00:00
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
}