feat: forget-password & reset-password added

This commit is contained in:
2025-09-13 13:07:18 +03:30
parent 00edec179a
commit b820dd372a
8 changed files with 371 additions and 73 deletions
+7 -1
View File
@@ -23,7 +23,13 @@
Route::post('{id}', 'update');
Route::get('', 'index');
});
Route::prefix('auth')->controller(UserController::class)->group(function () {
Route::post('forgot-password', 'requestPasswordReset'); // send reset link
Route::post('reset-password', 'resetPassword'); // actually reset
});
Route::get('/reset-password/{token}', [UserController::class, 'showResetForm'])
->name('password.reset');
Route::prefix('auth')->controller(UserController::class)->group(function () {
Route::middleware(['throttle:3,1', 'auto-ban'])->post('login-otp', 'loginOTP');
Route::post('check-otp', 'checkOTP');