We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a registered user, I try to log him in with this request:
var credentials = { email: scope.emailInput, password: scope.passwordInput }; $auth.submitLogin(credentials) .then(function(resp) { console.log(resp); }) .catch(function(resp) { console.log(resp); });
returns 401 Unauthorised:
Started POST "/auth/sign_in" for 127.0.0.1 at 2015-05-02 12:31:32 +0200 12:31:32 web.1 | ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" 12:31:32 web.1 | Processing by DeviseTokenAuth::SessionsController#create as JSON 12:31:32 web.1 | Parameters: {"email"=>"[email protected]", "password"=>"[FILTERED]", "subdomain"=>"api", "session"=>{"email"=>"[email protected]", "password"=>"[FILTERED]"}} 12:31:32 web.1 | Can't verify CSRF token authenticity 12:31:32 web.1 | Unpermitted parameters: subdomain, session 12:31:32 web.1 | User Load (0.2ms) SELECT "users".* FROM "users" WHERE (uid = '[email protected]' AND provider='email') ORDER BY "users"."id" ASC LIMIT 1 12:31:32 web.1 | Unpermitted parameters: subdomain, session 12:31:32 web.1 | Unpermitted parameters: subdomain, session 12:31:32 web.1 | Unpermitted parameters: subdomain, session 12:31:32 web.1 | Completed 401 Unauthorized in 144ms (Views: 0.6ms | ActiveRecord: 0.9ms)
The text was updated successfully, but these errors were encountered:
I fixed it
Sorry, something went wrong.
No branches or pull requests
I have a registered user, I try to log him in with this request:
returns 401 Unauthorised:
The text was updated successfully, but these errors were encountered: