Skip to content
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 via the auth.pl api #167

Merged
merged 5 commits into from
Jun 24, 2021

Conversation

M123-dev
Copy link
Member

For #159

@stephanegigandet with my own login data it worked perfectly but with the dart test user it did not (of course on the test server), is this api available on there, is the dart test user already inside it? This would be interesting for tests

@M123-dev M123-dev added the ✨ enhancement New feature or request label Jun 22, 2021
Response response =
await HttpHelper().doPostRequest(loginUri, user.toData(), user);
return response.body;
return response.statusCode == 200 ? true : false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just

return response.statusCode == 200;

is cleaner

@peterwvj
Copy link
Collaborator

Great extension, thanks!

@M123-dev
Copy link
Member Author

Thanks @peterwvj

@M123-dev M123-dev merged commit 9e2d99d into openfoodfacts:master Jun 24, 2021
@M123-dev M123-dev deleted the login-via-auth.pl-api branch October 3, 2021 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants