Topic on Project:Support desk

Auto login with Username and Password

2
Sms.keval (talkcontribs)

How can I auto login user with username and password.

For example If I hit to this URL, how wikimedia will login the user?

URL - http://localhost/mediawiki/

POST Method - username=abc&password=abc

Ciencia Al Poder (talkcontribs)

Currently you'll need 2 requests: One to get a valid login token, and a second to provide the credentials with the previous login token and session cookie. If you want to do it programmatically you should use Api:Login