diff --git a/src/createEmployeeAccount.c b/src/createEmployeeAccount.c index 47c6eb9..b298929 100644 --- a/src/createEmployeeAccount.c +++ b/src/createEmployeeAccount.c @@ -48,6 +48,24 @@ bool isValidPassword( char *password, int minimumLength) } +bool isValidName(char* name, int minimalLength) +{ + if(strlen(name) < minimalLength) + { + return false; + } + + for(int i = 0;i