diff --git a/app/Actions/Fortify/CreateNewUser.php b/app/Actions/Fortify/CreateNewUser.php index 00858a21..9cfe6da3 100644 --- a/app/Actions/Fortify/CreateNewUser.php +++ b/app/Actions/Fortify/CreateNewUser.php @@ -23,12 +23,10 @@ class CreateNewUser implements CreatesNewUsers */ public function create(array $input) { - abort('404', 'WIP'); - Validator::make($input, [ 'name' => ['required', 'string', 'max:255'], 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], - 'password' => $this->passwordRules(), + 'password' => app()->environment('local') ? 'required' : $this->passwordRules(), 'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature() ? ['accepted', 'required'] : '', ]) ->validate(); diff --git a/app/Actions/Fortify/PasswordValidationRules.php b/app/Actions/Fortify/PasswordValidationRules.php index 78ed8cfe..618ad40a 100644 --- a/app/Actions/Fortify/PasswordValidationRules.php +++ b/app/Actions/Fortify/PasswordValidationRules.php @@ -8,7 +8,6 @@ trait PasswordValidationRules { /** * Get the validation rules used to validate passwords. - * * @return array */ protected function passwordRules() diff --git a/app/Models/User.php b/app/Models/User.php index 0690041b..645f2f4d 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -11,7 +11,7 @@ use Laravel\Jetstream\HasProfilePhoto; use Laravel\Jetstream\HasTeams; use Laravel\Sanctum\HasApiTokens; -class User extends Authenticatable +class User extends Authenticatable implements MustVerifyEmail { use HasApiTokens; use HasFactory; @@ -22,7 +22,6 @@ class User extends Authenticatable /** * The attributes that are mass assignable. - * * @var string[] */ protected $fillable = [ @@ -31,7 +30,6 @@ class User extends Authenticatable /** * The attributes that should be hidden for serialization. - * * @var array */ protected $hidden = [ @@ -43,7 +41,6 @@ class User extends Authenticatable /** * The attributes that should be cast. - * * @var array */ protected $casts = [ @@ -52,7 +49,6 @@ class User extends Authenticatable /** * The accessors to append to the model's array form. - * * @var array */ protected $appends = [ diff --git a/resources/views/livewire/frontend/search-cities.blade.php b/resources/views/livewire/frontend/search-cities.blade.php index e73632f9..d8b49513 100644 --- a/resources/views/livewire/frontend/search-cities.blade.php +++ b/resources/views/livewire/frontend/search-cities.blade.php @@ -1,4 +1,4 @@ -
+
{{-- HEADER --}}
@@ -115,7 +115,7 @@
{{-- FOOTER --}} -
+
+
diff --git a/resources/views/profile/update-profile-information-form.blade.php b/resources/views/profile/update-profile-information-form.blade.php index 53c13ab0..dd7bdd8c 100644 --- a/resources/views/profile/update-profile-information-form.blade.php +++ b/resources/views/profile/update-profile-information-form.blade.php @@ -13,22 +13,23 @@
+ "/> - +
- {{ $this->user->name }} + {{ $this->user->name }}
@@ -48,28 +49,30 @@ @endif - +
@endif
- - - + + +
- - - + + + @if (Laravel\Fortify\Features::enabled(Laravel\Fortify\Features::emailVerification()) && ! $this->user->hasVerifiedEmail())

{{ __('Your email address is unverified.') }} -

@@ -88,8 +91,8 @@ {{ __('Saved.') }} - {{-- + {{ __('Save') }} - --}} +