mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-06-25 16:04:37 -05:00
Implemented Custom Auth Framework
Rebuilt member authorization and session handling within Laravel's envirnoment. Sticking with bcrypt encryption for passwords to make the transistion simple.
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\FrontIndexController;
|
||||
use App\Http\Controllers\AuthController;
|
||||
use App\Http\Controllers\DenController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@ -14,4 +16,13 @@ use App\Http\Controllers\FrontIndexController;
|
||||
|
|
||||
*/
|
||||
|
||||
//index
|
||||
Route::get("/", [FrontIndexController::class, 'start']);
|
||||
|
||||
//auth
|
||||
Route::get("/login", [AuthController::class, 'showLogin']);
|
||||
Route::post("/login", [AuthController::class, 'memberAuth']);
|
||||
|
||||
//den
|
||||
Route::get("/den", [DenController::class, 'start'])->middleware('member.check');
|
||||
Route::get("/logout", [AuthController::class, 'leave']);
|
||||
|
Reference in New Issue
Block a user