Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split up HTTP Traits into Mixins and Modifiers #54

Merged
merged 1 commit into from
Jul 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

$traits = [];
if ($withoutRateLimiting) {
$traits[] = "ClaudioDekker\LaravelAuth\Http\Traits\WithoutRateLimiting";
$traits[] = "ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutRateLimiting";
}

if ($withoutEmailVerification) {
$traits[] = "ClaudioDekker\LaravelAuth\Http\Traits\WithoutVerificationEmail";
$traits[] = "ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutVerificationEmail";
}

if ($flavor !== 'email-based') {
$traits[] = "ClaudioDekker\LaravelAuth\Http\Traits\\" . $flavorTrait;
$traits[] = "ClaudioDekker\LaravelAuth\Http\Modifiers\\" . $flavorTrait;
}

asort($traits);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace App\Http\Controllers\Auth\Challenges;

use ClaudioDekker\LaravelAuth\Http\Controllers\Challenges\AccountRecoveryChallengeController as BaseController;
@if ($withoutRateLimiting)
use ClaudioDekker\LaravelAuth\Http\Traits\WithoutRateLimiting;
use ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutRateLimiting;
@endif
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Contracts\View\View;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ namespace App\Http\Controllers\Auth\Challenges;

use ClaudioDekker\LaravelAuth\Http\Controllers\Challenges\MultiFactorChallengeController as BaseController;
@if ($flavor !== 'email-based')
use ClaudioDekker\LaravelAuth\Http\Traits\{{ $flavorTrait }};
use ClaudioDekker\LaravelAuth\Http\Modifiers\{{ $flavorTrait }};
@endif
@if ($withoutRateLimiting)
use ClaudioDekker\LaravelAuth\Http\Traits\WithoutRateLimiting;
use ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutRateLimiting;
@endif
use ClaudioDekker\LaravelAuth\Specifications\WebAuthn\Dictionaries\PublicKeyCredentialRequestOptions;
use Illuminate\Contracts\Auth\Authenticatable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ namespace App\Http\Controllers\Auth\Challenges;

use ClaudioDekker\LaravelAuth\Http\Controllers\Challenges\SudoModeChallengeController as BaseController;
@if ($flavor !== 'email-based')
use ClaudioDekker\LaravelAuth\Http\Traits\{{ $flavorTrait }};
use ClaudioDekker\LaravelAuth\Http\Modifiers\{{ $flavorTrait }};
@endif
@if ($withoutRateLimiting)
use ClaudioDekker\LaravelAuth\Http\Traits\WithoutRateLimiting;
use ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutRateLimiting;
@endif
use ClaudioDekker\LaravelAuth\Specifications\WebAuthn\Dictionaries\PublicKeyCredentialRequestOptions;
use Illuminate\Contracts\View\View;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ namespace App\Http\Controllers\Auth;
use ClaudioDekker\LaravelAuth\CredentialType;
use ClaudioDekker\LaravelAuth\Http\Controllers\LoginController as BaseController;
@if ($flavor !== 'email-based')
use ClaudioDekker\LaravelAuth\Http\Traits\{{ $flavorTrait }};
use ClaudioDekker\LaravelAuth\Http\Modifiers\{{ $flavorTrait }};
@endif
@if ($withoutRateLimiting)
use ClaudioDekker\LaravelAuth\Http\Traits\WithoutRateLimiting;
use ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutRateLimiting;
@endif
use ClaudioDekker\LaravelAuth\Specifications\WebAuthn\Dictionaries\PublicKeyCredentialRequestOptions;
use Illuminate\Contracts\Auth\Authenticatable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

$traits = [];
if ($withoutEmailVerification) {
$traits[] = "ClaudioDekker\LaravelAuth\Http\Traits\WithoutVerificationEmail";
$traits[] = "ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutVerificationEmail";
}

if ($flavor !== 'email-based') {
$traits[] = "ClaudioDekker\LaravelAuth\Http\Traits\\" . $flavorTrait;
$traits[] = "ClaudioDekker\LaravelAuth\Http\Modifiers\\" . $flavorTrait;
}

asort($traits);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace App\Http\Controllers\Auth\Settings;

use ClaudioDekker\LaravelAuth\Http\Controllers\Settings\RegisterPublicKeyCredentialController as BaseController;
@if ($flavor !== 'email-based')
use ClaudioDekker\LaravelAuth\Http\Traits\{{ $flavorTrait }};
use ClaudioDekker\LaravelAuth\Http\Modifiers\{{ $flavorTrait }};
@endif
use ClaudioDekker\LaravelAuth\Specifications\WebAuthn\Dictionaries\PublicKeyCredentialCreationOptions;
use ClaudioDekker\WordGenerator\Generator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace App\Http\Controllers\Auth\Settings;

use ClaudioDekker\LaravelAuth\Http\Controllers\Settings\RegisterTotpCredentialController as BaseController;
@if ($flavor !== 'email-based')
use ClaudioDekker\LaravelAuth\Http\Traits\{{ $flavorTrait }};
use ClaudioDekker\LaravelAuth\Http\Modifiers\{{ $flavorTrait }};
@endif
use ClaudioDekker\WordGenerator\Generator;
use Illuminate\Contracts\View\View;
Expand Down
26 changes: 13 additions & 13 deletions packages/bladebones/tests/Feature/Console/GenerateCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function it_accepts_all_default_options_without_prompting_when_passing_th
$this->assertMockShouldReceiveControllerWithRateLimiting('Challenges/SudoModeChallengeController');
$this->assertMockShouldReceiveControllerWithRateLimiting('LoginController');
$this->assertMockShouldReceiveControllerWithRateLimiting('RegisterController', function ($contents) {
$this->assertStringNotContainsString("use ClaudioDekker\LaravelAuth\Http\Traits\WithoutVerificationEmail;\n", $contents);
$this->assertStringNotContainsString("use ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutVerificationEmail;\n", $contents);
$this->assertStringNotContainsString("use WithoutVerificationEmail;\n", $contents);
});
$this->assertMockShouldReceiveTest('Unit/PruneUnclaimedUsersTest');
Expand Down Expand Up @@ -162,7 +162,7 @@ public function it_asks_whether_you_want_to_use_rate_limiting(): void
$this->assertMockShouldReceiveControllerWithRateLimiting('Challenges/SudoModeChallengeController');
$this->assertMockShouldReceiveControllerWithRateLimiting('LoginController');
$this->assertMockShouldReceiveControllerWithRateLimiting('RegisterController', function ($contents) {
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Traits\WithoutVerificationEmail;\n", $contents);
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutVerificationEmail;\n", $contents);
$this->assertStringContainsString("use WithoutVerificationEmail;\n", $contents);
});
$this->assertMockShouldReceiveTest('Unit/PruneUnclaimedUsersTest');
Expand Down Expand Up @@ -250,7 +250,7 @@ public function it_disables_rate_limiting_when_you_answer_the_rate_limiting_ques
$this->assertMockShouldReceiveControllerWithoutRateLimiting('Challenges/SudoModeChallengeController');
$this->assertMockShouldReceiveControllerWithoutRateLimiting('LoginController');
$this->assertMockShouldReceiveController('RegisterController', function ($contents) {
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Traits\WithoutVerificationEmail;\n", $contents);
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutVerificationEmail;\n", $contents);
$this->assertStringContainsString("use WithoutVerificationEmail;\n", $contents);
});
$this->assertMockShouldReceiveTest('Unit/PruneUnclaimedUsersTest');
Expand Down Expand Up @@ -337,7 +337,7 @@ public function it_disables_rate_limiting_when_the_without_rate_limiting_flag_wa
$this->assertMockShouldReceiveControllerWithoutRateLimiting('Challenges/SudoModeChallengeController');
$this->assertMockShouldReceiveControllerWithoutRateLimiting('LoginController');
$this->assertMockShouldReceiveController('RegisterController', function ($contents) {
$this->assertStringNotContainsString("use ClaudioDekker\LaravelAuth\Http\Traits\WithoutVerificationEmail;\n", $contents);
$this->assertStringNotContainsString("use ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutVerificationEmail;\n", $contents);
$this->assertStringNotContainsString("use WithoutVerificationEmail;\n", $contents);
});
$this->assertMockShouldReceiveTest('Unit/PruneUnclaimedUsersTest');
Expand Down Expand Up @@ -425,7 +425,7 @@ public function it_asks_whether_you_want_to_send_verification_emails_on_registra
$this->assertMockShouldReceiveControllerWithoutRateLimiting('Challenges/SudoModeChallengeController');
$this->assertMockShouldReceiveControllerWithoutRateLimiting('LoginController');
$this->assertMockShouldReceiveController('RegisterController', function ($contents) {
$this->assertStringNotContainsString("use ClaudioDekker\LaravelAuth\Http\Traits\WithoutVerificationEmail;\n", $contents);
$this->assertStringNotContainsString("use ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutVerificationEmail;\n", $contents);
$this->assertStringNotContainsString("use WithoutVerificationEmail;\n", $contents);
});
$this->assertMockShouldReceiveTest('Unit/PruneUnclaimedUsersTest');
Expand Down Expand Up @@ -513,7 +513,7 @@ public function it_does_not_send_verification_emails_on_registration_when_you_an
$this->assertMockShouldReceiveControllerWithoutRateLimiting('Challenges/SudoModeChallengeController');
$this->assertMockShouldReceiveControllerWithoutRateLimiting('LoginController');
$this->assertMockShouldReceiveController('RegisterController', function ($contents) {
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Traits\WithoutVerificationEmail;\n", $contents);
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutVerificationEmail;\n", $contents);
$this->assertStringContainsString("use WithoutVerificationEmail;\n", $contents);
});
$this->assertMockShouldReceiveTest('Unit/PruneUnclaimedUsersTest');
Expand Down Expand Up @@ -600,7 +600,7 @@ public function it_does_not_send_verification_emails_on_registration_when_the_re
$this->assertMockShouldReceiveControllerWithoutRateLimiting('Challenges/SudoModeChallengeController');
$this->assertMockShouldReceiveControllerWithoutRateLimiting('LoginController');
$this->assertMockShouldReceiveController('RegisterController', function ($contents) {
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Traits\WithoutVerificationEmail;\n", $contents);
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutVerificationEmail;\n", $contents);
$this->assertStringContainsString("use WithoutVerificationEmail;\n", $contents);
});
$this->assertMockShouldReceiveTest('Unit/PruneUnclaimedUsersTest');
Expand Down Expand Up @@ -688,7 +688,7 @@ public function it_does_not_create_views_and_view_tests_when_the_without_views_f
$this->assertMockShouldReceiveControllerWithRateLimiting('Challenges/SudoModeChallengeController');
$this->assertMockShouldReceiveControllerWithRateLimiting('LoginController');
$this->assertMockShouldReceiveControllerWithRateLimiting('RegisterController', function ($contents) {
$this->assertStringNotContainsString("use ClaudioDekker\LaravelAuth\Http\Traits\WithoutVerificationEmail;\n", $contents);
$this->assertStringNotContainsString("use ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutVerificationEmail;\n", $contents);
$this->assertStringNotContainsString("use WithoutVerificationEmail;\n", $contents);
});
$this->assertMockShouldReceiveTest('Unit/PruneUnclaimedUsersTest');
Expand Down Expand Up @@ -785,12 +785,12 @@ public function it_asks_what_flavor_of_user_accounts_should_be_used(): void
$this->assertMockShouldReceiveControllerWithoutRateLimiting('Challenges/MultiFactorChallengeController');
$this->assertMockShouldReceiveControllerWithoutRateLimiting('Challenges/SudoModeChallengeController');
$this->assertMockShouldReceiveControllerWithoutRateLimiting('LoginController', function ($contents) {
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Traits\UsernameBased;\n", $contents);
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Modifiers\UsernameBased;\n", $contents);
$this->assertStringContainsString("use UsernameBased;\n", $contents);
});
$this->assertMockShouldReceiveController('RegisterController', function ($contents) {
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Traits\UsernameBased;\n", $contents);
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Traits\WithoutVerificationEmail;\n", $contents);
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Modifiers\UsernameBased;\n", $contents);
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutVerificationEmail;\n", $contents);
$this->assertStringContainsString("use UsernameBased;\n", $contents);
$this->assertStringContainsString("use WithoutVerificationEmail;\n", $contents);
});
Expand Down Expand Up @@ -875,7 +875,7 @@ protected function assertMockShouldReceiveControllerWithRateLimiting(string $fil
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Controllers\\$className as BaseController;\n", $contents);

$this->assertStringContainsString("\n\nclass $relativeClassName extends BaseController\n{\n", $contents);
$this->assertStringNotContainsString("use ClaudioDekker\LaravelAuth\Http\Traits\WithoutRateLimiting;\n", $contents);
$this->assertStringNotContainsString("use ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutRateLimiting;\n", $contents);
$this->assertStringNotContainsString("use WithoutRateLimiting;\n", $contents);

if ($callback) {
Expand All @@ -896,7 +896,7 @@ protected function assertMockShouldReceiveControllerWithoutRateLimiting(string $
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Controllers\\$className as BaseController;\n", $contents);

$this->assertStringContainsString("\n\nclass $relativeClassName extends BaseController\n{\n", $contents);
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Traits\WithoutRateLimiting;\n", $contents);
$this->assertStringContainsString("use ClaudioDekker\LaravelAuth\Http\Modifiers\WithoutRateLimiting;\n", $contents);
$this->assertStringContainsString("use WithoutRateLimiting;\n", $contents);

if ($callback) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use ClaudioDekker\LaravelAuth\Events\AccountRecovered;
use ClaudioDekker\LaravelAuth\Events\AccountRecoveryFailed;
use ClaudioDekker\LaravelAuth\Events\Mixins\EmitsLockoutEvent;
use ClaudioDekker\LaravelAuth\Http\Concerns\EnablesSudoMode;
use ClaudioDekker\LaravelAuth\Http\Concerns\InteractsWithRateLimiting;
use ClaudioDekker\LaravelAuth\Http\Mixins\EnablesSudoMode;
use ClaudioDekker\LaravelAuth\LaravelAuth;
use ClaudioDekker\LaravelAuth\RecoveryCodeManager;
use Illuminate\Contracts\Auth\Authenticatable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
use ClaudioDekker\LaravelAuth\Events\Mixins\EmitsAuthenticatedEvent;
use ClaudioDekker\LaravelAuth\Events\Mixins\EmitsLockoutEvent;
use ClaudioDekker\LaravelAuth\Events\MultiFactorChallengeFailed;
use ClaudioDekker\LaravelAuth\Http\Concerns\Challenges\PublicKeyChallenge;
use ClaudioDekker\LaravelAuth\Http\Concerns\Challenges\TotpChallenge;
use ClaudioDekker\LaravelAuth\Http\Concerns\EnablesSudoMode;
use ClaudioDekker\LaravelAuth\Http\Traits\EmailBased;
use ClaudioDekker\LaravelAuth\Http\Mixins\Challenges\PublicKeyChallenge;
use ClaudioDekker\LaravelAuth\Http\Mixins\Challenges\TotpChallenge;
use ClaudioDekker\LaravelAuth\Http\Mixins\EnablesSudoMode;
use ClaudioDekker\LaravelAuth\Http\Modifiers\EmailBased;
use ClaudioDekker\LaravelAuth\LaravelAuth;
use ClaudioDekker\LaravelAuth\Methods\WebAuthn\Objects\CredentialAttributes;
use ClaudioDekker\LaravelAuth\Specifications\WebAuthn\Dictionaries\PublicKeyCredentialRequestOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
use App\Providers\RouteServiceProvider;
use ClaudioDekker\LaravelAuth\Events\Mixins\EmitsLockoutEvent;
use ClaudioDekker\LaravelAuth\Events\SudoModeEnabled;
use ClaudioDekker\LaravelAuth\Http\Concerns\Challenges\PasswordChallenge;
use ClaudioDekker\LaravelAuth\Http\Concerns\Challenges\PublicKeyChallenge;
use ClaudioDekker\LaravelAuth\Http\Concerns\EnablesSudoMode;
use ClaudioDekker\LaravelAuth\Http\Middleware\EnsureSudoMode;
use ClaudioDekker\LaravelAuth\Http\Traits\EmailBased;
use ClaudioDekker\LaravelAuth\Http\Mixins\Challenges\PasswordChallenge;
use ClaudioDekker\LaravelAuth\Http\Mixins\Challenges\PublicKeyChallenge;
use ClaudioDekker\LaravelAuth\Http\Mixins\EnablesSudoMode;
use ClaudioDekker\LaravelAuth\Http\Modifiers\EmailBased;
use ClaudioDekker\LaravelAuth\Specifications\WebAuthn\Dictionaries\PublicKeyCredentialRequestOptions;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Http\Request;
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/Http/Controllers/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
use App\Providers\RouteServiceProvider;
use ClaudioDekker\LaravelAuth\Events\AuthenticationFailed;
use ClaudioDekker\LaravelAuth\Events\Mixins\EmitsAuthenticatedEvent;
use ClaudioDekker\LaravelAuth\Http\Concerns\EnablesSudoMode;
use ClaudioDekker\LaravelAuth\Http\Concerns\HandlesLogouts;
use ClaudioDekker\LaravelAuth\Http\Concerns\Login\PasskeyBasedAuthentication;
use ClaudioDekker\LaravelAuth\Http\Concerns\Login\PasswordBasedAuthentication;
use ClaudioDekker\LaravelAuth\Http\Traits\EmailBased;
use ClaudioDekker\LaravelAuth\Http\Mixins\EnablesSudoMode;
use ClaudioDekker\LaravelAuth\Http\Modifiers\EmailBased;
use ClaudioDekker\LaravelAuth\Specifications\WebAuthn\Dictionaries\PublicKeyCredentialRequestOptions;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Contracts\Auth\Authenticatable;
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/Http/Controllers/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace ClaudioDekker\LaravelAuth\Http\Controllers;

use App\Providers\RouteServiceProvider;
use ClaudioDekker\LaravelAuth\Http\Concerns\EnablesSudoMode;
use ClaudioDekker\LaravelAuth\Http\Concerns\Registration\PasskeyBasedRegistration;
use ClaudioDekker\LaravelAuth\Http\Concerns\Registration\PasswordBasedRegistration;
use ClaudioDekker\LaravelAuth\Http\Traits\EmailBased;
use ClaudioDekker\LaravelAuth\Http\Mixins\EnablesSudoMode;
use ClaudioDekker\LaravelAuth\Http\Modifiers\EmailBased;
use Illuminate\Auth\Events\Registered;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Http\Request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace ClaudioDekker\LaravelAuth\Http\Controllers\Settings;

use ClaudioDekker\LaravelAuth\CredentialType;
use ClaudioDekker\LaravelAuth\Http\Traits\EmailBased;
use ClaudioDekker\LaravelAuth\Http\Modifiers\EmailBased;
use ClaudioDekker\LaravelAuth\LaravelAuth;
use ClaudioDekker\LaravelAuth\Methods\WebAuthn\Contracts\WebAuthnContract as WebAuthn;
use ClaudioDekker\LaravelAuth\Methods\WebAuthn\Exceptions\InvalidPublicKeyCredentialException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace ClaudioDekker\LaravelAuth\Http\Controllers\Settings;

use ClaudioDekker\LaravelAuth\CredentialType;
use ClaudioDekker\LaravelAuth\Http\Traits\EmailBased;
use ClaudioDekker\LaravelAuth\Http\Modifiers\EmailBased;
use ClaudioDekker\LaravelAuth\LaravelAuth;
use ClaudioDekker\LaravelAuth\Methods\Totp\Contracts\TotpContract as Totp;
use Illuminate\Http\Request;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ClaudioDekker\LaravelAuth\Http\Concerns\Challenges;
namespace ClaudioDekker\LaravelAuth\Http\Mixins\Challenges;

use ClaudioDekker\LaravelAuth\Http\Concerns\InteractsWithRateLimiting;
use Illuminate\Http\Request;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ClaudioDekker\LaravelAuth\Http\Concerns\Challenges;
namespace ClaudioDekker\LaravelAuth\Http\Mixins\Challenges;

use ClaudioDekker\LaravelAuth\CredentialType;
use ClaudioDekker\LaravelAuth\Http\Concerns\InteractsWithRateLimiting;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ClaudioDekker\LaravelAuth\Http\Concerns\Challenges;
namespace ClaudioDekker\LaravelAuth\Http\Mixins\Challenges;

use ClaudioDekker\LaravelAuth\CredentialType;
use ClaudioDekker\LaravelAuth\Http\Concerns\InteractsWithRateLimiting;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ClaudioDekker\LaravelAuth\Http\Concerns;
namespace ClaudioDekker\LaravelAuth\Http\Mixins;

use ClaudioDekker\LaravelAuth\Http\Middleware\EnsureSudoMode;
use Illuminate\Http\Request;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ClaudioDekker\LaravelAuth\Http\Traits;
namespace ClaudioDekker\LaravelAuth\Http\Modifiers;

trait EmailBased
{
Expand Down
Loading