diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index 7922cc8..ba18009 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -1,10 +1,10 @@ -
+ @csrf
- @error('name') @enderror @@ -15,14 +15,14 @@
-
-
@@ -33,7 +33,7 @@
- @error('email') @enderror @@ -42,7 +42,7 @@
- @error('password') @enderror @@ -52,7 +52,7 @@
+ name="password_confirmation" required autocomplete="new-password"/> @error('password_confirmation') @enderror
@@ -76,6 +76,8 @@ let phoneInput = window.intlTelInput(phoneInputField, { utilsScript: "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/js/utils.js", initialCountry: "auto", + //add favourite countries + preferredCountries: ["us", "gb", "ca", "au", "nz"], geoIpLookup: function (success, failure) { try { fetch("https://ipinfo.io/json?token=cbcffb988673b9", { @@ -108,6 +110,7 @@ if (!update_location_success) { // Default to US if we can't get the location phoneInput.setCountry("us"); + document.querySelector("#location").value = "United States"; } // When we select a country, update the location field diff --git a/resources/views/layouts/guest.blade.php b/resources/views/layouts/guest.blade.php index a13a764..775e85e 100644 --- a/resources/views/layouts/guest.blade.php +++ b/resources/views/layouts/guest.blade.php @@ -30,7 +30,6 @@
- @include('session.alerts') {{ $slot }}