Browse Source

Bug 20568: (QA follow-up) Make sure client_id and secret are not overwritten on store

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
18.05.x
Tomás Cohen Arazi 6 years ago
committed by Jonathan Druart
parent
commit
45efd8e3ec
  1. 6
      Koha/ApiKey.pm

6
Koha/ApiKey.pm

@ -49,8 +49,10 @@ sub store {
my ( $uuid, $uuidstring );
$self->client_id($self->_generate_unused_uuid('client_id'));
$self->secret($self->_generate_unused_uuid('secret'));
$self->client_id($self->_generate_unused_uuid('client_id'))
unless $self->client_id;
$self->secret($self->_generate_unused_uuid('secret'))
unless $self->secret;
return $self->SUPER::store();
}

Loading…
Cancel
Save