mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-02 12:17:22 +01:00
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/
This commit is contained in:
parent
042c770878
commit
fa4f4f1441
4
.env
4
.env
@ -1,3 +1,7 @@
|
||||
#Email verification=Changes if users have to verify their email after registration.
|
||||
#=Register_auth either auth or verified. If auth is selected, no verification is required. Default is verified.
|
||||
Register_auth=verified
|
||||
|
||||
#App Settings=Changes settings regarding your LittleLink Custom installation. You probably only want to change the App Name setting.
|
||||
#=App_Name changes the displayed name for the App in the title, for example.
|
||||
App_Name="LittleLink Custom"
|
||||
|
@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
|
||||
class User extends Authenticatable
|
||||
class User extends Authenticatable implements MustVerifyEmail
|
||||
{
|
||||
use HasFactory, Notifiable;
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
</x-slot>
|
||||
|
||||
<div class="mb-4 text-sm text-gray-600">
|
||||
{{ __('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.') }}
|
||||
{{ __('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.') }}
|
||||
</div>
|
||||
|
||||
@if (session('status') == 'verification-link-sent')
|
||||
|
@ -26,7 +26,7 @@ Route::get('/', [App\Http\Controllers\HomeController::class, 'home'])->name('hom
|
||||
|
||||
//User route
|
||||
Route::group([
|
||||
'middleware' => 'auth',
|
||||
'middleware' => env('REGISTER_AUTH'),
|
||||
], function () {
|
||||
URL::forceScheme('https'); # comment to disable https
|
||||
Route::get('/studio/index', [UserController::class, 'index'])->name('studioIndex');
|
||||
|
@ -1,8 +1,11 @@
|
||||
#Email verification=Changes if users have to verify their email after registration.
|
||||
#=Register_auth either auth or verified. If auth is selected, no verification is required. Default is verified.
|
||||
Register_auth=verified
|
||||
|
||||
#App Settings=Changes settings regarding your LittleLink Custom installation. You probably only want to change the App Name setting.
|
||||
#=App_Name changes the displayed name for the App in the title, for example.
|
||||
App_Name="LittleLink Custom"
|
||||
# You can get a new App Key from https://littlelink-custom.com/key.php
|
||||
App_Key=base64:YOU+MUST+CHANGE+THIS+YUFukELiN6Bk9gQ19+9zwk=
|
||||
APP_KEY=base64:YOU+MUST+CHANGE+THIS+YUFukELiN6Bk9gQ19+9zwk=
|
||||
App_URL=
|
||||
|
||||
|
||||
@ -43,4 +46,4 @@ Broadcast_driver=log
|
||||
Cache_driver=file
|
||||
Queue_connection=sync
|
||||
Session_driver=file
|
||||
Session_lifetime=120
|
||||
Session_lifetime=120
|
||||
|
Loading…
x
Reference in New Issue
Block a user