[smarcet] - #4824 - Integration Testing : fix on Integrity constraint violation: 1062 Duplicate entry

'' for key 'openid_users_identifier_unique''
This commit is contained in:
smarcet 2013-12-02 11:59:24 -03:00
parent fec1bc2eb5
commit 0d7354994e
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class AssociationService implements IAssociationService
if (is_null($realm) || empty($realm) || $values[5] != $realm) {
throw new OpenIdInvalidRealmException(sprintf(OpenIdErrorMessages::InvalidPrivateAssociationMessage, $handle, $realm));
}
$success = $this->redis->setnx('lock.get.' . 1);
$success = $this->redis->setnx('lock.get.'. $handle . 1);
if (!$success) { // only one time we could use this handle
throw new ReplayAttackException(sprintf(OpenIdErrorMessages::ReplayAttackPrivateAssociationAlreadyUsed, $handle));
}