diff --git a/src/main.cpp b/src/main.cpp index f9ac6c6..7b89d90 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -578,7 +578,7 @@ int main(int argc, char *argv[]) { } //check if signup data is complete - if (!email.empty() && !name.empty() && !password.empty() && password == passwordConfirmation) + if (!email.empty() && !name.empty() && !password.empty() && password.compare(passwordConfirmation) != 0) requestFillCompletion = true; if (requestFillCompletion) { @@ -619,7 +619,7 @@ int main(int argc, char *argv[]) { } else { ctx[MUSTACHE_REGISTRATION_ERROR] = true; - if (password != passwordConfirmation) + if (password.compare(passwordConfirmation) != 0) ctx[MUSTACHE_REGISTRATION_ERROR_PASS_CONFIRMATION] = true; ctx[MUSTACHE_REGISTRATION_ERROR_EMAIL_NAME_PASS_NOT_FILLED] = true; }