luckyframework / luckyframework/authentic
Password reset token not found in session
Open
Nobody has claimed this yet.
- Dominant language
- Crystal
- Stars
- 15
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
It doesn't happen often.
Here's my Heroku log:
2024-06-27T20:55:21.567698+00:00 heroku[router]: at=info method=GET path="/password_resets/1?token=WyJnOFBIZlBzVUlFemJ0RTEyaDhVYnUzb3ZGZXhIMng0NE05UGs5UlpNdm9zPSIsIkphaDNockRvYWNWN2hMUXBzOXBVcWMycU05Yz0iXQ%3D%3D" host=www.portrait-sonore.com request_id=caf06e8f-1fb8-401a-96c3-3ede9ea9c108 fwd="166.62.222.58,172.69.214.213" dyno=web.1 connect=0ms service=1ms status=302 bytes=739 protocol=https
2024-06-27T20:55:21.634268+00:00 heroku[router]: at=info method=GET path="/password_resets/1/edit" host=www.portrait-sonore.com request_id=7f21a308-462f-4135-88f9-d2a9b4a851ed fwd="166.62.222.58,172.69.214.213" dyno=web.1 connect=0ms service=1ms status=500 bytes=2002 protocol=https
2024-06-27T20:55:21.566533+00:00 app[web.1]: {"severity":"Info","source":"lucky","timestamp":"2024-06-27T20:55:21+00:00","local":{"method":"GET","path":"/password_resets/1?token=WyJnOFBIZlBzVUlFemJ0RTEyaDhVYnUzb3ZGZXhIMng0NE05UGs5UlpNdm9zPSIsIkphaDNockRvYWNWN2hMUXBzOXBVcWMycU05Yz0iXQ%3D%3D","request_id":null}}
2024-06-27T20:55:21.567295+00:00 app[web.1]: {"severity":"Info","source":"lucky","timestamp":"2024-06-27T20:55:21+00:00","local":{"status":302,"duration":"846.26µs","request_id":null}}
2024-06-27T20:55:21.633063+00:00 app[web.1]: {"severity":"Info","source":"lucky","timestamp":"2024-06-27T20:55:21+00:00","local":{"method":"GET","path":"/password_resets/1/edit","request_id":null}}
2024-06-27T20:55:21.634529+00:00 app[web.1]: {"severity":"Error","source":"lucky","timestamp":"2024-06-27T20:55:21+00:00","error":{"class":"Exception","message":"Password reset token not found in session","backtrace":["/tmp/build_b2e0cf60/lib/lucky/src/lucky/secure_headers/set_frame_guard.cr:45:17 in 'call'","/tmp/build_b2e0cf60/lib/lucky/src/lucky/renderable.cr:130:16 in 'perform_action'","/tmp/build_b2e0cf60/lib/lucky/src/lucky/route_handler.cr:10:7 in 'call'","/tmp/build_b2e0cf60/.heroku/crystal/share/crystal/src/http/server/handler.cr:30:7 in 'call'","/tmp/build_b2e0cf60/.heroku/crystal/share/crystal/src/http/server/handler.cr:30:7 in 'call'","/tmp/build_b2e0cf60/.heroku/crystal/share/crystal/src/http/server/handler.cr:32:7 in 'call_next'","/tmp/build_b2e0cf60/.heroku/crystal/share/crystal/src/time.cr:357:5 in 'call'","/tmp/build_b2e0cf60/.heroku/crystal/share/crystal/src/http/server/handler.cr:30:7 in 'call'","/tmp/build_b2e0cf60/.heroku/crystal/share/crystal/src/http/server/handler.cr:32:7 in 'call_next'","/tmp/build_b2e0cf60/lib/lucky/src/lucky/force_ssl_handler.cr:36:8 in 'call'","/tmp/build_b2e0cf60/lib/lucky/src/lucky/request_id_handler.cr:24:5 in 'call'","/tmp/build_b2e0cf60/.heroku/crystal/share/crystal/src/http/server/request_processor.cr:51:11 in 'handle_client'","/tmp/build_b2e0cf60/.heroku/crystal/share/crystal/src/fiber.cr:141:11 in 'run'","???"]}}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the password-reset request from GET /password_resets/1?token=... through the redirect to /password_resets/1/edit, using the Heroku log and the reported "Password reset token not found in session" exception. Reproduce the intermittent failure and identify why the token is absent from the session; done means the edit request no longer returns status 500 and the reset flow still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- crystal
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100