towerops/lib/towerops_web
Graham McIntire 33daaf14f0 fix: return raw session token instead of hash in mobile QR login (#42)
the complete_qr_login endpoint was returning session.token (the SHA256
hash stored in the database) instead of session.raw_token (the plaintext).
this caused all subsequent API calls and WebSocket connections to fail
with 401/REFUSED since the server would hash the already-hashed token.

adds a regression test that verifies the returned token is usable for
authenticated API requests.

Reviewed-on: graham/towerops-web#42
2026-03-16 13:59:52 -05:00
..
channels add mobile app websocket channel and improve QR linking UX 2026-03-13 17:28:36 -05:00
components fix: reduce left margin on integrations page (#34) 2026-03-15 18:29:03 -05:00
controllers fix: return raw session token instead of hash in mobile QR login (#42) 2026-03-16 13:59:52 -05:00
graphql add real-time GraphQL API with time-series queries and subscriptions 2026-03-12 10:24:39 -05:00
helpers feat: add status emoji to page titles 2026-03-06 14:45:02 -06:00
live remove-add-device-from-sites (#37) 2026-03-15 18:46:16 -05:00
plugs test: improve test coverage and code quality 2026-03-15 14:49:55 -05:00
changelog_parser.ex fix: resolve 500 errors on /activity and /changelog 2026-02-13 19:49:12 -06:00
endpoint.ex add mobile app websocket channel and improve QR linking UX 2026-03-13 17:28:36 -05:00
gettext.ex init 2025-12-21 11:10:43 -06:00
gettext_helpers.ex feat: migrate email templates to gettext (Phase 2 - Emails) 2026-02-02 09:48:30 -06:00
graphql_socket.ex add real-time GraphQL API with time-series queries and subscriptions 2026-03-12 10:24:39 -05:00
permissions.ex i18n: add Spanish locale with full translations, language selector, and locale hook 2026-02-14 17:44:01 -06:00
plug_exceptions.ex handle exceptions gracefully on api endpoints 2026-02-04 12:18:14 -06:00
remote_ip.ex perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
router.ex paperclip/TOW-21-uisp-integration-phase1 (#31) 2026-03-15 17:57:36 -05:00
scoped_resource.ex perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
telemetry.ex fix: add Oban config to dev.exs and replace Exq telemetry with Oban 2026-01-24 16:39:45 -06:00
telemetry_filter.ex fix: suppress health check logs and downgrade CI artifacts to v3 2026-03-05 15:54:47 -06:00
user_auth.ex feat: add alert count badge to notification bell 2026-03-12 14:06:18 -05:00