Skip to content

Commit

Permalink
Merge branch 'feature/config-sync' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
bangyadiii committed May 27, 2024
2 parents 97a3a72 + 20d6465 commit c18545d
Show file tree
Hide file tree
Showing 34 changed files with 169 additions and 684 deletions.
41 changes: 0 additions & 41 deletions app/Http/Controllers/Auth/ConfirmablePasswordController.php

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions app/Http/Controllers/Auth/EmailVerificationPromptController.php

This file was deleted.

48 changes: 0 additions & 48 deletions app/Http/Controllers/Auth/LoginController.php

This file was deleted.

61 changes: 0 additions & 61 deletions app/Http/Controllers/Auth/NewPasswordController.php

This file was deleted.

29 changes: 0 additions & 29 deletions app/Http/Controllers/Auth/PasswordController.php

This file was deleted.

44 changes: 0 additions & 44 deletions app/Http/Controllers/Auth/PasswordResetLinkController.php

This file was deleted.

51 changes: 0 additions & 51 deletions app/Http/Controllers/Auth/RegisteredUserController.php

This file was deleted.

28 changes: 0 additions & 28 deletions app/Http/Controllers/Auth/VerifyEmailController.php

This file was deleted.

2 changes: 1 addition & 1 deletion app/Http/Middleware/VerifyCsrfToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ class VerifyCsrfToken extends Middleware
* @var array<int, string>
*/
protected $except = [
//
// 'livewire/*'
];
}
6 changes: 4 additions & 2 deletions app/Livewire/Customer/CreateCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use App\Models\Bill;
use App\Models\Customer;
use App\Models\Plan;
use App\Models\Profile;
use App\Models\Router;
use App\Models\Secret;
use App\Models\Setting;
Expand Down Expand Up @@ -44,16 +45,17 @@ public function store()
$customer->fill($this->form->only(
Customer::make()->getFillable()
));

if ($this->form->secret_type === 'add_secret') {
try {
$client = Router::getClient($router->host, $router->username, $router->password);
$profile = Profile::getProfile($client, $plan->ppp_profile_id);

$id = Secret::addSecret(
$client,
$this->form->secret_username,
$this->form->secret_password,
$this->form->ppp_service,
$plan->ppp_profile_id,
$profile['name'],
$this->form->local_address,
$this->form->remote_address,
$this->form->ip_type,
Expand Down
Loading

0 comments on commit c18545d

Please sign in to comment.