From f5a3353d097c55b9eb52cc0d79251080a7856337 Mon Sep 17 00:00:00 2001 From: Noah Lancien Date: Mon, 25 Sep 2023 17:35:14 +0200 Subject: [PATCH 1/2] Confirm mail is now send to every newly created user --- app/Models/User.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Models/User.php b/app/Models/User.php index 09263ef..7967f02 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -85,6 +85,9 @@ class User extends Authenticatable } Cache::flush('AdminUsers'); }); + static::created(function (User $user) { + $user->sendMailConfirm(); + }); static::updating(function (User $user) { if (Hash::needsRehash($user->password)) { $user->password = Hash::make($user->password); From 4ad9c0e39f43582e043259780f41fea1cb5a390a Mon Sep 17 00:00:00 2001 From: Nicolas Demangeat Date: Thu, 12 Oct 2023 10:59:58 +0200 Subject: [PATCH 2/2] change required to false for gitlab project id --- .../bo/pages/sites/form-inputs.blade.php | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/resources/views/bo/pages/sites/form-inputs.blade.php b/resources/views/bo/pages/sites/form-inputs.blade.php index 3f00f56..53a650f 100644 --- a/resources/views/bo/pages/sites/form-inputs.blade.php +++ b/resources/views/bo/pages/sites/form-inputs.blade.php @@ -1,7 +1,7 @@
{{-- NAME --}}
-
+
{{ Str::ucfirst(__('validation.attributes.name')) }}
@@ -31,7 +31,7 @@
{{-- USERS --}}
-
+
{{ __('models.classes.users') }}
@@ -61,7 +61,7 @@
{{-- GITLAB_PROJECT_ID --}}
-
+
{{ Str::ucfirst(__('validation.attributes.gitlab_project_id')) }}
@@ -72,7 +72,7 @@ 'model' => Str::singular(__('models.classes.sites')), ]), 'name' => 'gitlab_project_id', - 'required' => true, + 'required' => false, 'model' => $siteModel ?? null, 'helper' => __('validation.integer', [ 'attribute' => __(':field du :model', [ @@ -81,7 +81,6 @@ ]), ]), 'step' => 1, - 'min' => 1 ])
@@ -89,11 +88,11 @@
{{-- SITE URLS --}}
-
+
{{ __('URLs du site') }}
{{-- URL_RE7 --}} -
+
@include('bo.partials.inputs.varchar', [ 'id' => 'siteUrlRe7', 'label' => __(':field du :model', [ @@ -112,7 +111,7 @@ ])
{{-- URL_PROD --}} -
+
@include('bo.partials.inputs.varchar', [ 'id' => 'siteUrlProd', 'label' => __(':field du :model', [ @@ -137,15 +136,15 @@
@push('scripts') - + submitClone.addEventListener('click', (event) => { + event.preventDefault(); + submit.click(''); + }) + }); + @endpush