Skip to content

Commit fb2a94f

Browse files
authored
chore: change registration mechanisms (#7201)
1 parent c099c93 commit fb2a94f

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

app/Http/Controllers/Auth/AcceptInvitationController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Illuminate\Database\Eloquent\ModelNotFoundException;
1010
use Illuminate\Http\Request;
1111
use Illuminate\Support\Facades\Auth;
12-
use Illuminate\Validation\Rules;
12+
use Illuminate\Validation\Rules\Password;
1313
use Inertia\Inertia;
1414

1515
class AcceptInvitationController extends Controller
@@ -35,7 +35,7 @@ public function store(Request $request)
3535
'invitation_code' => 'required|uuid',
3636
'first_name' => 'required|string|max:255',
3737
'last_name' => 'required|string|max:255',
38-
'password' => ['required', 'confirmed', Rules\Password::defaults()],
38+
'password' => ['required', 'confirmed', Password::min(8)->uncompromised()],
3939
]);
4040

4141
$data = [

resources/js/Pages/Auth/Login.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const reload = () => {
9494
</div>
9595

9696
<div
97-
class="mt-6 flex w-full flex-col overflow-hidden bg-white shadow-md dark:bg-gray-800 sm:max-w-4xl sm:rounded-lg md:flex-row">
97+
class="mt-6 mb-12 flex w-full flex-col overflow-hidden bg-white shadow-md dark:bg-gray-800 sm:max-w-4xl sm:rounded-lg md:flex-row">
9898
<img :src="wallpaperUrl" class="w-full sm:invisible sm:w-10/12 md:visible" :alt="$t('Wallpaper')" />
9999
<div class="w-full">
100100
<div class="border-b border-gray-200 px-6 pb-6 pt-8 dark:border-gray-700">

resources/js/Pages/Auth/Register.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ const policy = () => {
8787
id="password"
8888
v-model="form.password"
8989
type="password"
90-
class="mt-1 block w-full"
90+
class="mt-1 mb-1 block w-full"
9191
required
9292
autocomplete="new-password" />
93+
<p class="text-xs text-gray-600">{{ $t('The password should be at least 8 characters long.') }}</p>
9394
</div>
9495

9596
<div class="mb-8 mt-4">

resources/js/Shared/Guest.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import ApplicationLogo from '@/Components/ApplicationLogo.vue';
1111
</Link>
1212
</div>
1313

14-
<div class="mt-6 w-full overflow-hidden bg-white px-6 py-6 shadow-md dark:bg-gray-900 sm:max-w-md sm:rounded-lg">
14+
<div
15+
class="mt-6 mb-12 w-full overflow-hidden bg-white px-6 py-6 shadow-md dark:bg-gray-900 sm:max-w-md sm:rounded-lg">
1516
<slot />
1617
</div>
1718
</div>

0 commit comments

Comments
 (0)