More code cleanup.

This commit is contained in:
Dane Everitt 2017-02-10 17:41:56 -05:00
parent c70d31c08f
commit 8dc1f41b73
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 1 additions and 2 deletions

View file

@ -149,7 +149,7 @@ class APIRepository
$secretKey = str_random(16) . '.' . str_random(7) . '.' . str_random(7);
$key = new Models\APIKey;
$key->fill([
'user' => $this->user->id,
'user_id' => $this->user->id,
'public' => str_random(16),
'secret' => Crypt::encrypt($secretKey),
'allowed_ips' => empty($this->allowed) ? null : json_encode($this->allowed),

View file

@ -48,7 +48,6 @@ class NotificationService
public function __construct(Server $server)
{
$this->server = $server;
$this->user = User::findOrFail($server->owner_id);
}
public function pass(array $notification)