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

Method pwQuality

tests/testvalidator.cpp:938–956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936#ifdef CUTELYST_VALIDATOR_WITH_PWQUALITY
937 C_ATTR(pwQuality, :Local :AutoArgs)
938 void pwQuality(Context *c)
939 {
940 static const QVariantMap options({{u"difok"_s, 1},
941 {u"minlen"_s, 8},
942 {u"dcredit"_s, 0},
943 {u"ucredit"_s, 0},
944 {u"ocredit"_s, 0},
945 {u"lcredit"_s, 0},
946 {u"minclass"_s, 0},
947 {u"maxrepeat"_s, 0},
948 {u"maxclassrepeat"_s, 0},
949 {u"maxsequence"_s, 0},
950 {u"gecoscheck"_s, 0},
951 {u"dictcheck"_s, 1},
952 {u"usercheck"_s, 0}});
953 static Validator v({new ValidatorPwQuality(
954 u"field"_s, 50, options, QString{}, QString{}, m_validatorMessages)});
955 checkResponse(c, v.validate(c));
956 }
957#endif
958
959 // ***** Endpoint for ValidatorRegularExpression ******

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected