We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fd6e39 commit b64bf0dCopy full SHA for b64bf0d
homework/password-check/validation.cpp
@@ -32,4 +32,8 @@ std::string getErrorMessage(ErrorCode errorCode) {
32
33
bool doPasswordsMatch(std::string password, std::string repeatedPassword) {
34
return password == repeatedPassword;
35
+}
36
+
37
+ErrorCode checkPasswordRules(std::string password) {
38
+ return ErrorCode::Ok;
39
}
homework/password-check/validation.hpp
@@ -15,4 +15,6 @@ enum class ErrorCode {
15
16
std::string getErrorMessage(ErrorCode errorCode);
17
18
-bool doPasswordsMatch(std::string password, std::string repeatedPassword);
+bool doPasswordsMatch(std::string password, std::string repeatedPassword);
19
20
+ErrorCode checkPasswordRules(std::string password);
0 commit comments