-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unpermitted parameter: {"email":"mail@gmail.com","password":"abcdefgh","password_confirmation":"abcdefgh"} #587
Comments
@dsmegha |
Hi @thelastinuit , thanks a lot. I got it working now. |
@dsmegha Hi How could you fix it? thanks |
There was something wrong with the way I was passing my arguments. It worked with this : |
Gotcha, did you |
Did you get it to work? I did not use ng-token-auth. I tested using basic $ curl -s -D - -H 'Content-Type: application/json' -H 'Accept: The subsequent request would send the client, uid and Access-Token. $ curl -s -D - -H 'Content-Type: application/json' -H 'Accept: On Sat, Apr 23, 2016 at 8:25 AM, Poc notifications@github.com wrote:
|
Hey, thank you so much, it worked, the problem was that I didn't use the latest version gem LOL |
Hi,
I am new to rails and web-app development. I am trying to get the devise_auth_token working and am using HTTParty to test this.
My rake routes contains this line :
user_registration POST /auth(.:format) devise_token_auth/registrations#create
And my HTTParty request is like this :
HTTParty.post("http://localhost:3000/auth/", {:body => [{:email => "mail@gmail.com", :password => "abcdefgh", :password_confirmation => "abcdefgh"}].to_json})
But I am getting this error :
Processing by DeviseTokenAuth::RegistrationsController#create as /
Parameters: {"{"email":"mail@gmail.com","password":"abcdefgh","password_confirmation":"abcdefgh"}"=>"[FILTERED]"}
Unpermitted parameter: {"email":"mail@gmail.com","password":"abcdefgh","password_confirmation":"abcdefgh"}
Filter chain halted as :validate_sign_up_params rendered or redirected
Why am I getting this?
The text was updated successfully, but these errors were encountered: