Skip to content

Commit

Permalink
Merge pull request coollabsio#3846 from ershisan99/next
Browse files Browse the repository at this point in the history
fix: use correct env variable for invoice ninja password
  • Loading branch information
andrasbacsai authored Oct 11, 2024
2 parents 62eeafe + 9e5551c commit 35834ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Models/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,15 +384,15 @@ public function extraFields()
$email = $this->environment_variables()->where('key', 'IN_USER_EMAIL')->first();
$data = $data->merge([
'Email' => [
'key' => 'IN_USER_EMAIL',
'key' => data_get($email, 'key'),
'value' => data_get($email, 'value'),
'rules' => 'required|email',
],
]);
$password = $this->environment_variables()->where('key', 'SERVICE_PASSWORD_INVOICENINJAUSER')->first();
$data = $data->merge([
'Password' => [
'key' => 'IN_PASSWORD',
'key' => data_get($password, 'key'),
'value' => data_get($password, 'value'),
'rules' => 'required',
'isPassword' => true,
Expand Down

0 comments on commit 35834ea

Please sign in to comment.