Trợ giúp về API MediaWiki
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=login (lg)
(main | login)
- Mô đun này chỉ có nhận các yêu cầu POST.
- Source: MediaWiki
- License: GPL-2.0+
Log in and get authentication cookies.
In the event of a successful log-in, the needed cookies will be included in the HTTP response headers. In the event of a failed log-in, further attempts may be throttled to limit automated password guessing attacks.
Các tham số:
- lgname
Tên người dùng.
- lgpassword
Mật khẩu.
- lgdomain
Tên miền (tùy chọn).
- lgtoken
Dấu hiệu đăng nhập được lấy trong yêu cầu đầu tiên.
Các ví dụ:
- Lấy dấu hiệu đăng nhập
- api.php?action=login&lgname=user&lgpassword=password
- Đăng nhập
- api.php?action=login&lgname=user&lgpassword=password&lgtoken=123ABC