diff options
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index 693612b9c..2bf215c56 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -1325,9 +1325,9 @@ Generate a token based on user and secret sub get_token : Private { my ( $self, $c ) = @_; - my $secret = $c->model('DB::Secret')->search()->first; + my $secret = $c->model('DB::Secret')->get; my $user = $c->forward('get_user'); - my $token = sha1_hex($user . $secret->secret); + my $token = sha1_hex($user . $secret); $c->stash->{token} = $token; return 1; |