*

bobyrou

  • ***
  • 85 posts
Login with API
« on: September 17, 2020, 02:39:39 PM »
How to call API to Login with username and password? or to check if user's login details are correct when user tries to login? I looked on Rest API plugin and I can't find anywhere anything about. Any help is much appreciated!

*

MB Themes

Re: Login with API
« Reply #1 on: September 17, 2020, 03:31:26 PM »
@bobyrou
Login is action where session for user is stored in browser.
This is irrelevant when getting data from database from outside application, as there is no browser used on site and it does not make quite sense.
You cannot login trough API and act like logged in user in i.e. android app. Login must be made in that app directly.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

bobyrou

  • ***
  • 85 posts
Re: Login with API
« Reply #2 on: September 17, 2020, 04:35:51 PM »
@bobyrou
Login is action where session for user is stored in browser.
This is irrelevant when getting data from database from outside application, as there is no browser used on site and it does not make quite sense.
You cannot login trough API and act like logged in user in i.e. android app. Login must be made in that app directly.

Then how can I let users to Login on the app? I have an api to register which works fine but I don't have an api to login.

*

MB Themes

Re: Login with API
« Reply #3 on: September 17, 2020, 05:10:01 PM »
Login is about session, cannot be solved via api.
You must use proper solution in app program.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots