MCPcopy Create free account
hub / github.com/cutelyst/cutelyst / emailValid

Method emailValid

tests/testvalidator.cpp:605–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603 // ***** Endpoint for ValidatorEmail valid ****
604 C_ATTR(emailValid, :Local :AutoArgs)
605 void emailValid(Context *c)
606 {
607 Validator v({new ValidatorEmail(
608 u"field"_s, ValidatorEmail::Valid, ValidatorEmail::NoOption, m_validatorMessages)});
609 checkResponse(c, v.validate(c, Validator::NoTrimming | Validator::BodyParamsOnly));
610 }
611
612 // ***** Endpoint for ValidatorEmail valid emails completely valid *****
613 C_ATTR(emailDnsWarnValid, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected