today_ai_weather/test
songtianlun 23992ec4b2 feat: add user authentication checks
- Implement before_action to ensure users are logged in
- Add logged_in_user method to handle redirection
- Update user fixture to include new user
- Enhance integration tests to check for login requirement

This commit introduces user authentication checks for the edit and
update actions in the UsersController. It ensures that only logged-in
users can access these actions, improving the security of the
application. Additionally, integration tests have been updated to
verify that users are redirected to the login page if they attempt
to edit or update their information without being logged in.
2025-01-03 11:12:51 +08:00
..
controllers feat(sample): add session and header 2025-01-01 15:44:50 +08:00
fixtures feat: add user authentication checks 2025-01-03 11:12:51 +08:00
helpers feat: add remember me functionality to login 2025-01-02 17:49:06 +08:00
integration feat: add user authentication checks 2025-01-03 11:12:51 +08:00
mailers init sample-app 2024-12-29 17:12:54 +08:00
models fix: ensure user logout only if logged in 2025-01-02 17:17:09 +08:00
system init sample-app 2024-12-29 17:12:54 +08:00
application_system_test_case.rb init sample-app 2024-12-29 17:12:54 +08:00
test_helper.rb feat: add remember me functionality to login 2025-01-02 17:49:06 +08:00