@ -578,7 +578,7 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//check if signup data is complete
|
//check if signup data is complete
|
||||||
if (!email.empty() && !name.empty() && !password.empty() && password.compare(passwordConfirmation) != 0)
|
if (!email.empty() && !name.empty() && !password.empty() && password == passwordConfirmation)
|
||||||
requestFillCompletion = true;
|
requestFillCompletion = true;
|
||||||
|
|
||||||
if (requestFillCompletion) {
|
if (requestFillCompletion) {
|
||||||
@ -619,7 +619,7 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ctx[MUSTACHE_REGISTRATION_ERROR] = true;
|
ctx[MUSTACHE_REGISTRATION_ERROR] = true;
|
||||||
if (password.compare(passwordConfirmation) != 0)
|
if (password != passwordConfirmation)
|
||||||
ctx[MUSTACHE_REGISTRATION_ERROR_PASS_CONFIRMATION] = true;
|
ctx[MUSTACHE_REGISTRATION_ERROR_PASS_CONFIRMATION] = true;
|
||||||
ctx[MUSTACHE_REGISTRATION_ERROR_EMAIL_NAME_PASS_NOT_FILLED] = true;
|
ctx[MUSTACHE_REGISTRATION_ERROR_EMAIL_NAME_PASS_NOT_FILLED] = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user