-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Changed password validation to use Password rule
- Fixed register controller
- Loading branch information
Showing
13 changed files
with
146 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
namespace Javaabu\Auth\Tests\Feature\Http\Controllers; | ||
|
||
use Illuminate\Contracts\Auth\StatefulGuard; | ||
use Illuminate\Support\Facades\Auth; | ||
use Illuminate\View\View; | ||
use Javaabu\Auth\Http\Controllers\Auth\RegisterController as JavaabuRegisterController; | ||
use Javaabu\Auth\User; | ||
|
||
class RegisterController extends JavaabuRegisterController | ||
{ | ||
public function applyMiddlewares(): void | ||
{ | ||
$this->middleware('guest:web'); | ||
} | ||
|
||
public function getGuard(): StatefulGuard | ||
{ | ||
return Auth::guard('web'); | ||
} | ||
|
||
/** | ||
* Display the registration form | ||
*/ | ||
public function showRegistrationForm(): View | ||
{ | ||
return view('register'); | ||
} | ||
|
||
public function getLoginForm(): View | ||
{ | ||
return view('login'); | ||
} | ||
|
||
public function determinePathForRedirectUsing(): User | ||
{ | ||
return new \Javaabu\Auth\Tests\Feature\Models\User(); | ||
} | ||
|
||
public function userClass(): string | ||
{ | ||
return \Javaabu\Auth\Tests\Feature\Models\User::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Register |
Oops, something went wrong.