today_ai_weather/test
songtianlun 2b03661431 feat: add user authentication and authorization
- Implement friendly forwarding for user login
- Add correct_user method to ensure users can only edit their own profiles
- Update sessions_controller to handle forwarding URL
- Enhance user controller tests to verify redirection for unauthorized access

These changes improve user experience by allowing users to be redirected
back to their intended page after logging in. Additionally, the new
correct_user method enhances security by preventing users from editing
other users' profiles, ensuring proper authorization checks are in place.
2025-01-03 13:48:59 +08:00
..
controllers feat: add user authentication and authorization 2025-01-03 13:48:59 +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 and authorization 2025-01-03 13:48:59 +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