-
Notifications
You must be signed in to change notification settings - Fork 234
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
Login form - Unpermitted parameters: session #28
Comments
Rails uses something called strong parameters. Devise whitelists certain params by default ("email", "password", "password_confirmation"), but you can modify these settings if you like. What you're seeing isn't an error exactly, it's just that a field called What does the POST request payload look like? Your logs indicate that the payload looks like this: {
"email": "test@test.com",
"password": "xxx",
"session": {
"email": "test@test.com",
"password": "xxx"
}
} If this is the case, then it looks like a param called I suggest that you inspect the object that you're passing to |
I'm using the example code: controller/signinctrl.js
}]); signin.html.haml%form{"ng-init" => "loginForm = {}", "ng-submit" => "submitLogin(loginForm)", :role => "form"} |
|
@ACPK - it looks like this is happening in the example app as well. I can't find the source of the While the warning is annoying, I don't think the I'm marking this issue closed, but feel free to re-open it (or send a PR) if you can solve the mystery. |
Update: there's a workaround here: The "session" parameter is actually created by Rails (wrap_parameters) |
I was able to get the sign up page working but am getting an " Unpermitted parameters: session" error for the sign in page.
The text was updated successfully, but these errors were encountered: