[spplus] fix last state check

This commit is contained in:
Benjamin Dauvergne 2011-12-12 17:34:31 +01:00
parent 4b8d021f22
commit e37c0a1f9c
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ next_url=%s' % (montant, email, next_url))
computed_hmac = sign_ntkey_query(self.cle, signed_data)
LOGGER.debug('computed signature %s' % hmac)
result = hmac==computed_hmac \
and reference.get(ETAT) == ETAT_PAIEMENT_ACCEPTE
and form.get(ETAT) == ETAT_PAIEMENT_ACCEPTE
return result, reference, form, SPCHECKOK
except ValueError:
return False, reference, form, SPCHECKOK