Specifications say that invalid token, expired token and any other
reason why the token can be considered invalid should return
{"active":false} reply with no other fields.
Thus, we need to consider this as invalid token.
if (active_value == NULL ||
(*req->db->set.active_value != '\0' &&
strcmp(req->db->set.active_value, active_value) != 0)) {
- *error_r = "User account is not active";
- *result_r = PASSDB_RESULT_USER_DISABLED;
+ *error_r = "Provided token is not valid";
+ *result_r = PASSDB_RESULT_PASSWORD_MISMATCH;
return FALSE;
}
}