Skip to content

Commit

Permalink
Merge pull request #39 from wanderlust-group-project-1/nirmal
Browse files Browse the repository at this point in the history
fix: profile edit redirect
  • Loading branch information
nsavinda authored Oct 31, 2023
2 parents 9282fc6 + 1f6de58 commit 0c279df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public function update(string $a = '', string $b = '', string $c = ''):void {



$this->view('customer/profile');
redirect('profile');
// $this->view('customer/profile');
}
}
2 changes: 2 additions & 0 deletions app/middlewares/AuthMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public static function run_middleware(string $controller, string $method): mixed
$authRequired = [
'Home' => ['index', 'method2'],
'Controller2' => ['method3'],
'Customer' => ['index', 'edit', 'update'],
'Profile' => ['index', 'edit', 'update'],
// 'Profile' => ['index', 'edit', 'update'],
];
$unauthRequired = [
Expand Down

0 comments on commit 0c279df

Please sign in to comment.