Skip to content

Commit

Permalink
Update web.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored Jun 9, 2024
1 parent 9ef2d07 commit fd5ab24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@

// Task: this "/secretpage" URL should be visible only for those who VERIFIED their email
// Add some middleware here, and change some code in app/Models/User.php to enable this
Route::view('/secretpage', 'secretpage')->middleware(['auth','verified']);
Route::view('/secretpage', 'secretpage')->middleware(['auth','verified'])
->name('secretpage');

// Task: this "/verysecretpage" URL should ask user for verifying their password once again
// You need to add some middleware here
Route::view('/verysecretpage', 'verysecretpage')
Route::view('/verysecretpage', 'verysecretpage')->middleware('password.confirm')
->name('verysecretpage');

require __DIR__.'/auth.php';

0 comments on commit fd5ab24

Please sign in to comment.