Skip to content

Commit

Permalink
Merge pull request #562 from mjamilasfihani/patch-01
Browse files Browse the repository at this point in the history
Update AuthController.php
  • Loading branch information
manageruz authored Oct 27, 2022
2 parents 1e5120f + bf9ac48 commit da35227
Show file tree
Hide file tree
Showing 2 changed files with 150 additions and 47 deletions.
14 changes: 7 additions & 7 deletions src/Config/Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@
$reservedRoutes = $config->reservedRoutes;

// Login/out
$routes->get($reservedRoutes['login'], 'AuthController::login', ['as' => $reservedRoutes['login']]);
$routes->get($reservedRoutes['login'], 'AuthController::login', ['as' => 'login']);
$routes->post($reservedRoutes['login'], 'AuthController::attemptLogin');
$routes->get($reservedRoutes['logout'], 'AuthController::logout');
$routes->get($reservedRoutes['logout'], 'AuthController::logout', ['as' => 'logout']);

// Registration
$routes->get($reservedRoutes['register'], 'AuthController::register', ['as' => $reservedRoutes['register']]);
$routes->get($reservedRoutes['register'], 'AuthController::register', ['as' => 'register']);
$routes->post($reservedRoutes['register'], 'AuthController::attemptRegister');

// Activation
$routes->get($reservedRoutes['activate-account'], 'AuthController::activateAccount', ['as' => $reservedRoutes['activate-account']]);
$routes->get($reservedRoutes['resend-activate-account'], 'AuthController::resendActivateAccount', ['as' => $reservedRoutes['resend-activate-account']]);
$routes->get($reservedRoutes['activate-account'], 'AuthController::activateAccount', ['as' => 'activate-account']);
$routes->get($reservedRoutes['resend-activate-account'], 'AuthController::resendActivateAccount', ['as' => 'resend-activate-account']);

// Forgot/Resets
$routes->get($reservedRoutes['forgot'], 'AuthController::forgotPassword', ['as' => $reservedRoutes['forgot']]);
$routes->get($reservedRoutes['forgot'], 'AuthController::forgotPassword', ['as' => 'forgot']);
$routes->post($reservedRoutes['forgot'], 'AuthController::attemptForgot');
$routes->get($reservedRoutes['reset-password'], 'AuthController::resetPassword', ['as' => $reservedRoutes['reset-password']]);
$routes->get($reservedRoutes['reset-password'], 'AuthController::resetPassword', ['as' => 'reset-password']);
$routes->post($reservedRoutes['reset-password'], 'AuthController::attemptReset');
});
Loading

0 comments on commit da35227

Please sign in to comment.