Skip to content

Commit b64bf0d

Browse files
committed
Add checkPasswordRules function
1 parent 9fd6e39 commit b64bf0d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

homework/password-check/validation.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ std::string getErrorMessage(ErrorCode errorCode) {
3232

3333
bool doPasswordsMatch(std::string password, std::string repeatedPassword) {
3434
return password == repeatedPassword;
35+
}
36+
37+
ErrorCode checkPasswordRules(std::string password) {
38+
return ErrorCode::Ok;
3539
}

homework/password-check/validation.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ enum class ErrorCode {
1515

1616
std::string getErrorMessage(ErrorCode errorCode);
1717

18-
bool doPasswordsMatch(std::string password, std::string repeatedPassword);
18+
bool doPasswordsMatch(std::string password, std::string repeatedPassword);
19+
20+
ErrorCode checkPasswordRules(std::string password);

0 commit comments

Comments
 (0)