Skip to content

Log in on staging returns 422 error #1612

@ianheggie-oaf

Description

@ianheggie-oaf

Describe the bug

To Reproduce

Steps to reproduce the behavior:

  1. Browse to https://test.theyvoteforyou.org.au/
  2. Click on 'Log in''
  3. Enter email and password
  4. Click 'Log in' button
  5. See error 422

Expected behavior

Site should respond correctly

Screenshots/Output

[51d5c1a9-8a1d-44c2-ba01-97477f48860f] ActionController::InvalidAuthenticityToken (Can't verify CSRF token authenticity.):
[51d5c1a9-8a1d-44c2-ba01-97477f48860f]
[51d5c1a9-8a1d-44c2-ba01-97477f48860f] config/application.rb:30:in 'PlausibleProxy#perform_request'

Additional context

  • Found when checking
  • IP filter list was present only on /etc/nginx/sites-enabled/production, not .../staging.
  • /etc/nginx/sites-enabled/{staging,production} does not set RAILS_ENV at all (it should)

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions