Skip to content

before_filter in version 1.0.4 does not play well with Devise #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AlexMcConnell opened this issue Nov 4, 2015 · 6 comments
Closed
Assignees
Labels
Milestone

Comments

@AlexMcConnell
Copy link

Using Angular to login to Devise, everything breaks after a successful login with version 1.0.4. Version 1.0.3 works fine. Took me a while to figure out it was your gem and not my code! 😄

@jsanders
Copy link
Collaborator

jsanders commented Nov 4, 2015

Thanks for the report! I'll take a look.

@jsanders jsanders self-assigned this Nov 4, 2015
@prodis
Copy link

prodis commented Dec 20, 2015

Same here. Version 1.0.3 works fine with Angular and Devise, but with version 1.0.4 I get:

Started POST "/users/sign_in.json" for ::1 at 2015-12-20 16:16:10 -0200
Processing by Devise::SessionsController#create as JSON
  Parameters: {"user"=>{"email"=>"chico@mineiro.com", "password"=>"[FILTERED]"}, "session"=>{"user"=>{"email"=>"chico@mineiro.com", "password"=>"[FILTERED]"}}}
Can't verify CSRF token authenticity
Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)

ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
...

@catuss-a
Copy link

catuss-a commented Jan 2, 2016

1h to find out it was coming from .4 :(

@oddg
Copy link

oddg commented Jan 2, 2016

I experienced the same with 1.0.4 while 1.0.3 works perfectly.

@stefanneculai
Copy link

I have just the same problem. I believe 699dc0b is causing it.

onyoo added a commit to onyoo/ng-commerce that referenced this issue Apr 6, 2016
@bodrovis bodrovis added the bug label Sep 29, 2016
@bodrovis
Copy link
Owner

#15

@bodrovis bodrovis changed the title It's a bug? before_filter in version 1.0.4 does not play well with Devise Sep 29, 2016
@bodrovis bodrovis added this to the 1.1.0 milestone Sep 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants