sample_rails_tailwind/test
songtianlun f110f26c0b fix: ensure user logout only if logged in
- Update `destroy` action in `SessionsController` to log out
  only if the user is currently logged in.
- Add a check in the `authenticated?` method of the `User`
  model to return false if `remember_digest` is nil.
- Enhance integration tests to simulate logout in another
  browser session and verify that the logout link is not
  present after logging out.

These changes improve the robustness of the session management
by preventing unnecessary logout attempts and ensuring that
authentication checks are more reliable.
2025-01-02 17:17:09 +08:00
..
controllers feat(sample): add session and header 2025-01-01 15:44:50 +08:00
fixtures feat: enhance user session management 2025-01-02 11:59:27 +08:00
helpers add some test 2024-12-31 00:37:02 +08:00
integration fix: ensure user logout only if logged in 2025-01-02 17:17:09 +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: enhance user session management 2025-01-02 11:59:27 +08:00