This PR adds authentication functionality to the codebase. It includes modifications to the Security class, Auth controller, login and register views, default layout, and welcome message view.
Summary of Changes
Modified app/Config/Security.php to add a new configuration option for authentication.
Modified app/Controllers/Auth.php to add methods for authentication, login, register, and logout.
Modified app/Views/auth/login.php and app/Views/auth/register.php to add input fields for email and password.
Modified app/Views/layouts/default.php to add a navigation bar with links to login, register, and logout pages.
Modified app/Views/welcome_message.php to add a message indicating the user's authentication status.
Fixes #7.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.
Description
This PR adds authentication functionality to the codebase. It includes modifications to the
Security
class,Auth
controller, login and register views, default layout, and welcome message view.Summary of Changes
app/Config/Security.php
to add a new configuration option for authentication.app/Controllers/Auth.php
to add methods for authentication, login, register, and logout.app/Views/auth/login.php
andapp/Views/auth/register.php
to add input fields for email and password.app/Views/layouts/default.php
to add a navigation bar with links to login, register, and logout pages.app/Views/welcome_message.php
to add a message indicating the user's authentication status.Fixes #7.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.