Skip to content

Commit fa4f4f1

Browse files
committed
Added email verification
Added email verification after user registration. After a user registered, an email is sent to the email used to sign up. The mail contains a verification link which is required to complete the registration process. This feature can be turned off in the Admin Panel under: Admin>Config by changing the setting "Register_auth" from "verified" to "auth". Read more about this on the Blog here: https://blog.littlelink-custom.com/optional-email-verification/
1 parent 042c770 commit fa4f4f1

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#Email verification=Changes if users have to verify their email after registration.
2+
#=Register_auth either auth or verified. If auth is selected, no verification is required. Default is verified.
3+
Register_auth=verified
4+
15
#App Settings=Changes settings regarding your LittleLink Custom installation. You probably only want to change the App Name setting.
26
#=App_Name changes the displayed name for the App in the title, for example.
37
App_Name="LittleLink Custom"

app/Models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Illuminate\Foundation\Auth\User as Authenticatable;
88
use Illuminate\Notifications\Notifiable;
99

10-
class User extends Authenticatable
10+
class User extends Authenticatable implements MustVerifyEmail
1111
{
1212
use HasFactory, Notifiable;
1313

resources/views/auth/verify-email.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</x-slot>
88

99
<div class="mb-4 text-sm text-gray-600">
10-
{{ __('Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn\'t receive the email, we will gladly send you another.') }}
10+
{{ __('Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn\'t receive the email, we will gladly send you another. If you do not see the email in a few minutes, check your junk mail or spam folder.') }}
1111
</div>
1212

1313
@if (session('status') == 'verification-link-sent')

routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
//User route
2828
Route::group([
29-
'middleware' => 'auth',
29+
'middleware' => env('REGISTER_AUTH'),
3030
], function () {
3131
URL::forceScheme('https'); # comment to disable https
3232
Route::get('/studio/index', [UserController::class, 'index'])->name('studioIndex');

storage/backups/default_settings

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
#Email verification=Changes if users have to verify their email after registration.
2+
#=Register_auth either auth or verified. If auth is selected, no verification is required. Default is verified.
3+
Register_auth=verified
4+
15
#App Settings=Changes settings regarding your LittleLink Custom installation. You probably only want to change the App Name setting.
26
#=App_Name changes the displayed name for the App in the title, for example.
37
App_Name="LittleLink Custom"
4-
# You can get a new App Key from https://littlelink-custom.com/key.php
5-
App_Key=base64:YOU+MUST+CHANGE+THIS+YUFukELiN6Bk9gQ19+9zwk=
8+
APP_KEY=base64:YOU+MUST+CHANGE+THIS+YUFukELiN6Bk9gQ19+9zwk=
69
App_URL=
710

811

@@ -43,4 +46,4 @@ Broadcast_driver=log
4346
Cache_driver=file
4447
Queue_connection=sync
4548
Session_driver=file
46-
Session_lifetime=120
49+
Session_lifetime=120

0 commit comments

Comments
 (0)