API: অ্যাকাউন্ট তৈরি করা
| MediaWiki Action API |
|---|
| Basics |
| Authentication |
| Accounts and Users |
| Page Operations |
|
| অনুসন্ধান |
| Developer Utilities |
| Tutorials |
| দে · আ · স |
API নথি
action=createaccount (create)
- This module requires write rights.
- This module only accepts POST requests.
- Source: MediaWiki
- License: GPL-2.0-or-later
Create a new user account.
The general procedure to use this module is:
- Fetch the fields available from action=query&meta=authmanagerinfo with amirequestsfor=create, and a createaccount token from action=query&meta=tokens .
- Present the fields to the user, and obtain their submission.
- Post to this module, supplying createreturnurl and any relevant fields.
- Check the status in the response.
- If you received PASS or FAIL, you're done. The operation either succeeded or it didn't.
- If you received UI, present the new fields to the user and obtain their submission. Then post to this module with createcontinue and the relevant fields set, and repeat step 4.
- If you received REDIRECT, direct the user to the redirecttarget and wait for the return to createreturnurl. Then post to this module with createcontinue and any fields passed to the return URL, and repeat step 4.
- If you received RESTART, that means the authentication worked but we don't have a linked user account. You might treat this as UI or as FAIL.
- createrequests
Only use these authentication requests, by the id returned from action=query&meta=authmanagerinfo with amirequestsfor=create or from a previous response from this module.
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- createmessageformat
Format to use for returning messages.
- One of the following values: html, none, raw, wikitext
- Default: wikitext
- createmergerequestfields
Merge field information for all authentication requests into one array.
- Type: boolean (details)
- createpreservestate
Preserve state from a previous failed login attempt, if possible.
If action=query&meta=authmanagerinfo returned true for hasprimarypreservedstate, requests marked as primary-required should be omitted. If it returned a non-empty value for preservedusername, that username must be used for the username parameter.
- Type: boolean (details)
- createreturnurl
Return URL for third-party authentication flows, must be absolute. Either this or createcontinue is required.
Upon receiving a REDIRECT response, you will typically open a browser or web view to the specified redirecttarget URL for a third-party authentication flow. When that completes, the third party will send the browser or web view to this URL. You should extract any query or POST parameters from the URL and pass them as a createcontinue request to this API module.
- createcontinue
This request is a continuation after an earlier UI or REDIRECT response. Either this or createreturnurl is required.
- Type: boolean (details)
- createtoken
A "createaccount" token retrieved from action=query&meta=tokens
- This parameter is required.
- *
- This module accepts additional parameters depending on the available authentication requests. Use action=query&meta=authmanagerinfo with amirequestsfor=create (or a previous response from this module, if applicable) to determine the requests available and the fields that they use.
- Start the process of creating the user Example with the password ExamplePassword.
- api.php?action=createaccount&username=Example&password=ExamplePassword&retype=ExamplePassword&createreturnurl=http://example.org/&createtoken=123ABC [open in sandbox]
অ্যাকাউন্ট তৈরি করা
প্রক্রিয়াটির তিনটি সাধারণ ধাপ রয়েছেঃ
- Fetch the fields from API:Authmanagerinfo and the token from API:Tokens .
- #প্রাপ্ত টোকেন, ব্যবহারকারীর তথ্য এবং অন্যান্য ক্ষেত্র সহ একটি পোস্ট অনুরোধ পাঠান এবং এপিআই-এ ইউআরএল ফেরত দিন।
- #প্রতিক্রিয়াটি মোকাবেলা করুন, যা আরও তথ্য সরবরাহের জন্য আরও পোস্ট অনুরোধ জড়িত থাকতে পারে।
Example: Process on a wiki without special authentication extensions
বিশেষ প্রমাণীকরণ এক্সটেনশন ছাড়া একটি উইকি বরং সহজবোধ্য হতে পারে। If your code knows which fields will be required, it might skip the call to API:Authmanagerinfo and just assume which fields will be needed (i.e. username, password & retyped password, email, possibly realname).
reason পরামিতি অন্তর্ভুক্ত করে এর একটি কারণ নির্দিষ্ট করতে হবে। মিডিয়াউইকি নতুন ব্যবহারকারীকে ইমেলের মাধ্যমে একটি অস্থায়ী পাসওয়ার্ড পাঠাতে আপনি password এবং retype পরামিতিগুলির জায়গায় mailpassword ব্যবহার করতে পারেন।
পোষ্ট অনুরোধ
প্রতিক্রিয়া
{ "createaccount":{ "status":"PASS", "username":"Zane" } }
নমুনা কোড
Python
#!/usr/bin/python3 """ create_account.py MediaWiki API Demos Demo of `createaccount` module: Create an account on a wiki without the special authentication extensions MIT license """ importrequests S = requests.Session() WIKI_URL = "http://dev.wiki.local.wmftest.net:8080" API_ENDPOINT = WIKI_URL + "/w/api.php" # First step # Retrieve account creation token from `tokens` module PARAMS_0 = { 'action':"query", 'meta':"tokens", 'type':"createaccount", 'format':"json" } R = S.get(url=API_ENDPOINT, params=PARAMS_0) DATA = R.json() TOKEN = DATA['query']['tokens']['createaccounttoken'] # Second step # Send a post request with the fetched token and other data (user information, # return URL, etc.) to the API to create an account PARAMS_1 = { 'action': "createaccount", 'createtoken': TOKEN, 'username': 'your_username', 'password': 'your_password', 'retype': 'retype_your_password', 'createreturnurl': WIKI_URL, 'format': "json" } R = S.post(API_ENDPOINT, data=PARAMS_1) DATA = R.json() print(DATA)
PHP
<?php /* create_account.php MediaWiki API Demos Demo of `createaccount` module: Create an account on a wiki without the special authentication extensions MIT license */ $wikiUrl = "http://dev.wiki.local.wmftest.net:8080"; $endPoint = $wikiUrl . "/w/api.php"; $createAccount_Token = getCreateAccountToken(); // Step 1 createAccount( $createAccount_Token ); // Step 2 // Step 1: GET request to fetch createaccount token function getCreateAccountToken() { global $endPoint; $params1 = [ "action" => "query", "meta" => "tokens", "type" => "createaccount", "format" => "json" ]; $url = $endPoint . "?" . http_build_query( $params1 ); $ch = curl_init( $url ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $ch, CURLOPT_COOKIEJAR, "cookie.txt" ); curl_setopt( $ch, CURLOPT_COOKIEFILE, "cookie.txt" ); $output = curl_exec( $ch ); curl_close( $ch ); $result = json_decode( $output, true ); return $result["query"]["tokens"]["createaccounttoken"]; } // Step 2: POST request with the fetched token and other data (user information, // return URL, etc.) to the API to create an account function createAccount( $createAccount_Token ) { global $endPoint, $wikiUrl; $params2 = [ "action" => "createaccount", "createtoken" => $createAccount_Token, "username" => "your_username", "password" => "your_password", "retype" => "retype_your_password", "createreturnurl" => $wikiUrl, "format" => "json" ]; $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, $endPoint ); curl_setopt( $ch, CURLOPT_POST, true ); curl_setopt( $ch, CURLOPT_POSTFIELDS, http_build_query( $params2 ) ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $ch, CURLOPT_COOKIEJAR, "cookie.txt" ); curl_setopt( $ch, CURLOPT_COOKIEFILE, "cookie.txt" ); $output = curl_exec( $ch ); curl_close( $ch ); echo( $output ); }
JavaScript
/* create_account.js MediaWiki API Demos Demo of `createaccount` module: Create an account on a wiki without the special authentication extensions MIT license */ varrequest=require('request').defaults({jar:true}), wikiUrl="http://dev.wiki.local.wmftest.net:8080", endPoint=wikiUrl+"/w/api.php"; // Step 1: GET request to fetch createaccount token functiongetCreateAccountToken(){ varparams_0={ action:"query", meta:"tokens", type:"createaccount", format:"json" }; request.get({url:endPoint,qs:params_0},function(error,res,body){ if(error){ return; } vardata=JSON.parse(body); createaccount(data.query.tokens.createaccounttoken); }); } // Step 2: POST request with the fetched token and other data (user information, // return URL, etc.) to the API to create an account functioncreateaccount(createaccount_token){ varparams_1={ action:"createaccount", username:"your_username", password:"your_password", retype:"retype_your_password", createreturnurl:wikiUrl, createtoken:createaccount_token, format:"json" }; request.post({url:endPoint,form:params_1},function(error,res,body){ if(error){ return; } console.log(body); }); } // Start From Step 1 getCreateAccountToken();
MediaWiki JS
/* create_account.js MediaWiki API Demos Demo of `createaccount` module: Create an account on a wiki without the special authentication extensions MIT License */ varparams={ action:'query', meta:'tokens', type:'createaccount', format:'json' }, api=newmw.Api(); api.get(params).done(function(data){ vartoken=data.query.tokens.createaccounttoken, params1={ action:'createaccount', username:'your_username', password:'your_password', retype:'retype_your_password', createreturnurl:'http:'+mw.config.get('wgServer'), createtoken:token, format:'json' }; api.post(params1).done(function(data){ console.log(data); }); });
Example: Account creation using authmanager (MediaWiki 1.27+)
এই উদাহরণটি মিডিয়াউইকি 1.27-এ প্রবর্তিত লেখক-ব্যবস্থাপক-ভিত্তিক এপিআই ব্যবহার করে আধুনিক অ্যাকাউন্ট তৈরির প্রবাহকে দেখায়।
Special:ApiSandbox পৃষ্ঠায় এবং API অ্যাকশনে createaccount হিসাবে, অনুরোধটি ফর্মটি ("অতিরিক্ত পরামিতি" বিভাগ) ব্যবহার করে তৈরি করা যেতে পারে। আপনি ক্ষেত্রের নাম এবং তাদের মান যোগ করুন। অ্যাকাউন্ট টোকেন তৈরি করুন ব্যবহার করে পাওয়া যাবেঃ /w/api.php?action=query&format=json&meta=tokens&type=createaccountপ্রতিক্রিয়ার মধ্যে একটি অথম্যানজেরইনফো অবজেক্ট অন্তর্ভুক্ত থাকতে পারে যা অতিরিক্ত প্রমাণীকরণের পদক্ষেপগুলি বর্ণনা করে (যেমন ক্যাপচা বা ইমেল যাচাইকরণ) । অ্যাকাউন্ট তৈরির প্রক্রিয়া শেষ না হওয়া পর্যন্ত গ্রাহকদের অবশ্যই অনুরোধের বিন্যাস পরিদর্শন করতে হবে এবং ফলো-আপ অনুরোধ জমা দিতে হবে।
Example: Process on a wiki with a CAPTCHA extension
Note the first step below could, if you'd rather, be done as two steps: one to fetch the fields available from API:Authmanagerinfo and another to fetch the token from API:Tokens .
1. Fetch fields available from API:Authmanagerinfo and token from API:Tokens
| ফলাফল |
|---|
{ "batchcomplete":"", "query":{ "authmanagerinfo":{ "canauthenticatenow":"", "cancreateaccounts":"", "preservedusername":"", "requests":[ { "id":"CaptchaAuthenticationRequest", "metadata":{ "type":"image", "mime":"image/png" }, "required":"required", "provider":"CaptchaAuthenticationRequest", "account":"CaptchaAuthenticationRequest", "fields":{ "captchaId":{ "type":"hidden", "value":"16649214", "label":"CAPTCHA ID", "help":"This value should be sent back unchanged." }, "captchaInfo":{ "type":"null", "value":"/w/index.php?title=Special:Captcha/image&wpCaptchaId=16649214", "label":"To help protect against automated account creation, please enter the words that appear below in the box ([[Special:Captcha/help|more info]]):", "help":"Description of the CAPTCHA." }, "captchaWord":{ "type":"string", "label":"CAPTCHA", "help":"Solution of the CAPTCHA." } } } ... ] }, "tokens":{ "createaccounttoken":"1de8d3f8023305742e69db9e16b4d5365bd82f9c+\\" } } } |
2. Send a post request along with a create account token, user information and return URL
| ফলাফল |
|---|
{ "createaccount":{ "status":"PASS", "username":"Zane" } } |
নমুনা কোড
লক্ষ্য করুন যে এই কোডের নমুনা API:Authmanagerinfo এবং API:Tokens অনুরোধগুলিকে পৃথক করে এবং সাধারণত ধরে নেয় যে ক্যাপচা থাকবে এবং অন্য কোনও জটিলতা থাকবে না।
| create_account_with_captcha.py |
|---|
#!/usr/bin/python3 """ create_account_with_captcha.py MediaWiki Action API Code Samples Demo of `createaccount` module: Create an account on a wiki with a special authentication extension installed. This example considers a case of a wiki where captcha is enabled through extensions like ConfirmEdit (https://www.mediawiki.org/wiki/Extension:ConfirmEdit) MIT license """ importrequests fromflaskimport Flask, render_template, flash, request S = requests.Session() WIKI_URL = "https://test.wikipedia.org" API_ENDPOINT = WIKI_URL + "/w/api.php" # App config. DEBUG = True APP = Flask(__name__) APP.config.from_object(__name__) APP.config['SECRET_KEY'] = 'enter_your_secret_key' @APP.route("/", methods=['GET', 'POST']) defshow_form(): """ Render form template and handle form submission request """ fields = get_form_fields() captcha = fields['CaptchaAuthenticationRequest'] captcha_url = WIKI_URL + captcha['captchaInfo']['value'] captcha_id = captcha['captchaId']['value'] display_fields = [] user_fields = [] captcha_fields = [] for field in fields: for name in fields[field]: details = { 'name': name, 'type': fields[field][name]['type'], 'label': fields[field][name]['label'] } if field != "CaptchaAuthenticationRequest": user_fields.append(details) else: if name == 'captchaWord': captcha_fields.append(details) display_fields = user_fields + captcha_fields if request.method == 'POST': create_account(request.form, captcha_id) return render_template('create_account_form.html', \ captcha=captcha_url, fields=display_fields) defget_form_fields(): """ Fetch the form fields from `authmanagerinfo` module """ result = {} response = S.get(url=API_ENDPOINT, params={ 'action': 'query', 'meta': 'authmanagerinfo', 'amirequestsfor': 'create', 'format': 'json' }) data = response.json() query = data and data['query'] authmanagerinfo = query and query['authmanagerinfo'] fields = authmanagerinfo and authmanagerinfo['requests'] for field in fields: if field['id'] in ('MediaWiki\\Auth\\UserDataAuthenticationRequest', \ 'CaptchaAuthenticationRequest', 'MediaWiki\\Auth\\PasswordAuthenticationRequest'): result[field['id']] = field['fields'] return result defcreate_account(form, captcha_id): """ Send a post request along with create account token, user information and return URL to the API to create an account on a wiki """ createtoken = fetch_create_token() response = S.post(url=API_ENDPOINT, data={ 'action': 'createaccount', 'createtoken': createtoken, 'username': form['username'], 'password': form['password'], 'retype': form['retype'], 'email': form['email'], 'createreturnurl': 'http://127.0.0.1:5000/', 'captchaId': captcha_id, 'captchaWord': form['captchaWord'], 'format': 'json' }) data = response.json() createaccount = data['createaccount'] if createaccount['status'] == "PASS": flash('Success! An account with username ' + \ form['username'] + ' has been created!') else: flash('Oops! Something went wrong -- ' + \ createaccount['messagecode'] + "." + createaccount['message']) deffetch_create_token(): """ Fetch create account token via `tokens` module """ response = S.get(url=API_ENDPOINT, params={ 'action': 'query', 'meta': 'tokens', 'type': 'createaccount', 'format': 'json' }) data = response.json() return data['query']['tokens']['createaccounttoken'] if __name__ == "__main__": APP.run() |
| create_account_form.html |
|---|
<!DOCTYPE html> <title>MediaWiki Create Account</title> <!-- CSS files are in here: https://github.com/srish/MediaWiki-Action-API-Code-Samples/tree/master/static --> <link rel="stylesheet" href="static/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="static/css/account_form.css"> <div class="container"> <h2>Create MediaWiki Account</h2> <form method="POST"> <div class="form-group"> <div class="form-field"> <div class="label-field">Enter your username</div> <input name="username"> </div> <div class="form-field"> <div class="label-field">Password</div> <input type="password" name="password"> </div> <div class="form-field"> <div class="label-field">Confirm password</div> <input type="password" name="confirm-password"> </div> <div class="form-field"> <div class="label-field">Enter address (optional)</div> <input name="email"> </div> <div class="form-field"> <div class="label-field">Enter the text you see on the image below</div> <input name="captcha-word"> </div> <img src="{{ captcha }}"> </div> <button type="submit" class="btn btn-success">Create your account</button> </form> <br> {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for message in messages %} <div class="alert alert-info"> {{ message[1] }} </div> {% endfor %} {% endif %} {% endwith %} </div> <br> </div> </div> |
Example: Account creation on a wiki with a CAPTCHA, an OpenID extension, and a two-factor authentication extension enabled
1. Fetch fields available from API:Authmanagerinfo and token from API:Tokens
API:Authmanagerinfo এবং API:Tokens -এর আনা-নেওয়া মূলত আগের উদাহরণের মতোই, এবং তাই এখানে পুনরাবৃত্তি করা হয় না। API:Authmanagerinfo দ্বারা ফেরত পাঠানো অনুরোধের তালিকায় ক্যাপচা এক্সটেনশন এবং ওপেনআইডি এক্সটেনশন উভয়ের সংজ্ঞা অন্তর্ভুক্ত থাকবে।
2. ক্যাপচা-র উত্তর দিন এবং ওপেনআইডি প্রমাণীকরণ নির্বাচন করুন।
| ফলাফল |
|---|
{ "createaccount":{ "status":"REDIRECT", "redirecttarget":"https://openid.example.net/openid-auth.php?scope=openid&response_type=code&client_id=ABC&redirect_uri=https://wiki.example.org/wiki/Special:OpenIDConnectReturn&state=XYZ123", "requests":[ { "id":"OpenIdConnectResponseAuthenticationRequest", "metadata":{}, "required":"required", "provider":"OpenID Connect at example.net", "account":"", "fields":{ "code":{ "type":"string", "label":"OpenID Code", "help":"OpenID Connect code response" }, "state":{ "type":"string", "label":"OpenID State", "help":"OpenID Connect state response" }, } } ] } } |
ক্লায়েন্ট ব্যবহারকারীর ব্রাউজারকে প্রদত্ত পুনঃনির্দেশিত লক্ষ্যে পুনর্নির্দেশ করবে বলে আশা করা হবে।
ওপেনআইডি প্রদানকারী উইকিতে 'স্পেশালঃ ওপেনআইডিকেনেক্টরিটারন'-এ পুনঃনির্দেশিত হবে, যা ওপেনআইডি প্রতিক্রিয়া যাচাই করবে এবং তারপর কোড এবং রাষ্ট্র পরামিতি যুক্ত করে প্রথম পোস্টে প্রদত্ত ক্রিয়েটারটার্নাল-এ পুনর্নির্দেশিত হবে।
ক্লায়েন্ট এই মুহুর্তে প্রক্রিয়াটির নিয়ন্ত্রণ ফিরে পায় এবং তার পরবর্তী API অনুরোধ করে।
3. ওপেনআইডি থেকে ফিরে আসি।
The client posts the code and state back to the API. এপিআই-এর প্রতিক্রিয়ায় দ্বি-ফ্যাক্টর প্রমাণীকরণ এক্সটেনশন রয়েছে যা ব্যবহারকারীকে তাদের দ্বিতীয় ফ্যাক্টর সেট আপ করতে প্ররোচিত করে।
| ফলাফল |
|---|
{ "createaccount":{ "status":"UI", "message":"Set up two-factor authentication", "requests":[ { "id":"TwoFactorAuthenticationRequest", "metadata":{ "account":"Alice", "secret":"6CO3 2AKV EP2X MIV5" }, "required":"optional", "provider":"", "account":"", "fields":{ "2FAInfo":{ "type":"null", "label":"A bunch of text describing how to set up two-factor auth.", "help":"Two-factor authentication setup instructions" }, "code":{ "type":"string", "label":"Code", "help":"Two-factor authentication code" } } }, { "id":"MediaWiki\\Auth\\ButtonAuthenticationRequest:skip2FASetup", "metadata":{}, "required":"optional", "provider":"MediaWiki\\Auth\\ButtonAuthenticationRequest", "account":"MediaWiki\\Auth\\ButtonAuthenticationRequest:skip2FASetup", "fields":{ "skip2FASetup":{ "type":"button", "label":"Skip", "help":"Skip two-factor authentication setup" } } } ] } } |
এখন ক্লায়েন্ট ব্যবহারকারীকে তাদের দ্বি-ফ্যাক্টর প্রমাণীকরণ অ্যাপে একটি নতুন অ্যাকাউন্ট সেট আপ করতে এবং বর্তমান কোডটি প্রবেশ করতে, অথবা ব্যবহারকারীকে 2এফএ সেটআপ এড়িয়ে যাওয়ার অনুমতি দেবে। ধরা যাক ব্যবহারকারী 2এফএ সেট আপ করেছেন।
4. দ্বি-গুণক প্রমাণীকরণ স্থাপন করুন।
| ফলাফল |
|---|
{ "createaccount":{ "status":"PASS", "username":"Alice" } } |
অবশেষে অ্যাকাউন্ট তৈরি করা সফল হয়েছে।
যদি কোনও সময়ে অ্যাকাউন্ট তৈরি করতে ব্যর্থ হয়, তাহলে ব্যবহারকারীর কাছে প্রদর্শনের জন্য একটি বার্তা সহ ব্যর্থতা অবস্থা সহ একটি প্রতিক্রিয়া ফেরত দেওয়া হবে।
সম্ভাব্য ত্রুটি
| কোড | তথ্য |
|---|---|
| badtoken | অ্যাকাউন্ট টোকেন তৈরি করা অবৈধ |
| notoken | The token parameter must be set. |
| mustpostparams | The following parameter was found in the query string, but must be in the POST body: createtoken. |
| missingparam | At least one of the parameters "createcontinue" এবং "createreturnurl" is required. |
| authmanager-create-no-primary | সরবরাহকৃত পরিচয়জ্ঞাপক উপাত্তগুলি অ্যাকাউন্ট সৃষ্টির জন্য ব্যবহার করা সম্ভব হয়নি। |
| noemailcreate | আপনাকে অবশ্যই একটি সঠিক ইমেইল ঠিকানা দিতে হবে |
| invalidemailaddress | এই ইমেইল ঠিকানাটি গ্রহণযোগ্য নয়, কারণ সম্ভবত এটি সঠিক বিন্যাসে লেখা হয়নি। অনুগ্রহ করে সঠিক বিন্যাসে লেখা ইমেইল ঠিকানা দিন, অথবা ক্ষেত্রটি খালি রাখুন। |
| badretype | আপনার প্রবেশ করানো পাসওয়ার্ডটি মিলছে না। |
| userexists | এই ব্যবহারকারী নামটি ইতমধ্যে ব্যবহার করা হয়েছে।
অনুগ্রহ করে অন্য নাম বেছে নিন। |
| captcha-createaccount-fail | ক্যাপচা ভুল অথবা অনুপস্থিত |
| acct_creation_throttle_hit | আপনার আইপি ঠিকানা ব্যবহার করে গত 2ドル দিনে এই উইকির পরিদর্শকেরা ১টি অ্যাকাউন্ট তৈরি করেছেন, যা এই সময়সীমার মধ্যে সর্বোচ্চ সংখ্যক।
ফলে, এই আইপি ঠিকানা ব্যবহার করে এই মুহূর্তে পরিদর্শকেরা আর কোনো অ্যাকাউন্ট তৈরি করতে পারবেন না। আপনি যদি এমন কোনও ইভেন্টে থাকেন যার মূল উদ্দেশ্য উইকিমিডিয়া প্রকল্পে অবদান রাখা নিয়ে আলোকপাত করা, তাহলে এই সমস্যাটির সমাধান করতে দয়া করে অস্থায়ীভাবে আইপি ক্যাপ অপসারণের অনুরোধ দেখুন। |
অতিরিক্ত নোট
- Account creations are recorded in Special:log/newusers.
আপনি যদি লগ ইন করেন, তাহলে অ্যাকাউন্ট তৈরি করার সময় আপনার ব্যবহারকারীর নামও নথিভুক্ত করা হবে।
- এই পৃষ্ঠায় প্রদত্ত কোডের স্নিপেটগুলি কার্যকর করার সময়, মনে রাখবেনঃ
- একবার উইকিতে একটি অ্যাকাউন্ট তৈরি হয়ে গেলে, এটি মুছে ফেলা যাবে না।
- Always use
https://test.wikipedia.org/w/api.phpas the endpoint, so that you don't accidentally create accounts on production wikis.
- MediaWiki site administrators and extension developers can disable this API feature by inserting the following line in the configuration file:
$wgAPIModules['createaccount'] = 'ApiDisabled';