Commit c008034
Fix double render in ApplicationController auth callbacks
Both check_user_token and check_session_expiry rendered the login view
without returning, causing the action to continue executing and Rails to
raise AbstractController::DoubleRenderError on every unauthenticated or
expired-session request.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent dd297ba commit c008034
File tree
2 files changed
+10
-6
lines changed- app/controllers
- test/controllers
2 files changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 16 | + | |
21 | 17 | | |
| 18 | + | |
| 19 | + | |
22 | 20 | | |
23 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
0 commit comments