Skip to content

Commit

Permalink
Update validation.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Josseye authored Feb 15, 2024
1 parent d306492 commit aeb0b00
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions homework/password-check/validation.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#pragma once
#include <string>

enum class ErrorCode {
Ok,
PasswordNeedsAtLeastNineCharacters,
PasswordNeedsAtLeastOneNumber,
PasswordNeedsAtLeastOneSpecialCharacter,
PasswordNeedsAtLeastOneUppercaseLetter,
PasswordsDoNotMatch
};
std::string getErrorMessage(int errcode);
bool doPasswordsMatch(std::string psw1, std::string psw2);
int checkPasswordRules(std::string pass);
Expand Down

0 comments on commit aeb0b00

Please sign in to comment.