Hi,

I am integrating taverna player portal in taverna mobile.
I am getting error on user login to taverna player portal

I can log in it by using this code by replacing email and password to your
email and password

curl -X POST -H "Accept: application/json" -H "Cache-Control: no-cache" -H
"Content-Type: application/x-www-form-urlencoded" -d 'user[email]=*email*
&user[password]=*password*&user[remember_me]=0&commit=Sign in' "
http://139.59.28.12:3000/users/sign_in";

i am getting
{"status":"406","error":"Not Acceptable"}
for correct credential


I am getting
{
  "error": "Invalid email or password."
}
for incorrect credential

if I remove Accept header then I am getting  200 Status Code for both the
correct and incorrect credential.

So how can I distinguish between correct and incorrect credential?



Thanks

Sagar

Reply via email to