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

Method emailUtf8Local

tests/testvalidator.cpp:718–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716 // ***** Endpoint for ValidatorEmail with allowed UTF8 local part
717 C_ATTR(emailUtf8Local, :Local :AutoArgs)
718 void emailUtf8Local(Context *c)
719 {
720 Validator v({new ValidatorEmail(
721 u"field"_s, ValidatorEmail::Valid, ValidatorEmail::UTF8Local, m_validatorMessages)});
722 checkResponse(c, v.validate(c, Validator::NoTrimming | Validator::BodyParamsOnly));
723 }
724
725 // ***** Endpoint for ValidatorEmail with allowed UTF8 local part and IDN
726 C_ATTR(emailUtf8, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected