MediaWiki  1.23.15
LoginForm Class Reference

Implements Special:UserLogin. More...

Inheritance diagram for LoginForm:
Collaboration diagram for LoginForm:

Public Member Functions

 __construct ( $request=null)
 
 addNewAccount ()
 
 addNewAccountInternal ()
 Make a new user account using the loaded data. More...
 
 addNewAccountMailPassword ()
 
 attemptAutoCreate ( $user)
 Attempt to automatically create a user on login. More...
 
 authenticateUserData ()
 Internally authenticate the login request. More...
 
 cookieRedirectCheck ( $type)
 
 execute ( $subPage)
 Default execute method Checks user permissions, calls the function given in mFunction. More...
 
 getDescription ()
 Returns the name that goes in the <h1> in the special page itself, and also the name that will be listed in Special:Specialpages. More...
 
 hasSessionCookie ()
 Check if a session cookie is present. More...
 
 initUser ( $u, $autocreate)
 Actually add a user to the database. More...
 
 load ()
 Loader. More...
 
 mailPasswordInternal ( $u, $throttle=true, $emailTitle='passwordremindertitle', $emailText='passwordremindertext')
 
 makeLanguageSelector ()
 Produce a bar of links which allow the user to select another language during login/registration but retain "returnto". More...
 
 makeLanguageSelectorLink ( $text, $lang)
 Create a language selector link for a particular language Links back to this page preserving type and returnto. More...
 
 onCookieRedirectCheck ( $type)
 
 processLogin ()
 
 showReturnToPage ( $type, $returnTo='', $returnToQuery='', $stickHTTPs=false)
 Add a "return to" link or redirect to it. More...
 
 userBlockedMessage (Block $block)
 Output a message that informs the user that they cannot create an account because there is a block on them or their IP which prevents account creation. More...
 
- Public Member Functions inherited from SpecialPage
 __construct ( $name='', $restriction='', $listed=true, $function=false, $file='default', $includable=false)
 Default constructor for special pages Derivative classes should call this from their constructor Note that if the user does not have the required level, an error message will be displayed by the default execute() method, without the global function ever being called. More...
 
 checkPermissions ()
 Checks if userCanExecute, and if not throws a PermissionsError. More...
 
 checkReadOnly ()
 If the wiki is currently in readonly mode, throws a ReadOnlyError. More...
 
 displayRestrictionError ()
 Output an error message telling the user what access level they have to have. More...
 
 getContext ()
 Gets the context this SpecialPage is executed in. More...
 
 getFile ()
 Get the file which will be included by SpecialPage::execute() if your extension is still stuck in the past and hasn't overridden the execute() method. More...
 
 getFinalGroupName ()
 Get the group that the special page belongs in on Special:SpecialPage Use this method, instead of getGroupName to allow customization of the group name from the wiki side. More...
 
 getFullTitle ()
 Return the full title, including $par. More...
 
 getLang ()
 Shortcut to get user's language. More...
 
 getLanguage ()
 Shortcut to get user's language. More...
 
 getLocalName ()
 Get the localised name of the special page. More...
 
 getName ()
 Get the name of this Special Page. More...
 
 getOutput ()
 Get the OutputPage being used for this instance. More...
 
 getPageTitle ( $subpage=false)
 Get a self-referential title object. More...
 
 getRequest ()
 Get the WebRequest being used for this instance. More...
 
 getRestriction ()
 Get the permission that a user must have to execute this page. More...
 
 getSkin ()
 Shortcut to get the skin being used for this instance. More...
 
 getTitle ( $subpage=false)
 Get a self-referential title object. More...
 
 getUser ()
 Shortcut to get the User executing this instance. More...
 
 including ( $x=null)
 Whether the special page is being evaluated via transclusion. More...
 
 isCached ()
 Is this page cached? Expensive pages are cached or disabled in miser mode. More...
 
 isExpensive ()
 Is this page expensive (for some definition of expensive)? Expensive pages are disabled or cached in miser mode. More...
 
 isIncludable ()
 Whether it's allowed to transclude the special page via {{Special:Foo/params}}. More...
 
 isListed ()
 Whether this special page is listed in Special:SpecialPages. More...
 
 isRestricted ()
 Can be overridden by subclasses with more complicated permissions schemes. More...
 
 listed ( $x=null)
 Get or set whether this special page is listed in Special:SpecialPages. More...
 
 msg ()
 Wrapper around wfMessage that sets the current context. More...
 
 outputHeader ( $summaryMessageKey='')
 Outputs a summary message on top of special pages Per default the message key is the canonical name of the special page May be overridden, i.e. More...
 
 requireLogin ( $reasonMsg=null, $titleMsg=null)
 If the user is not logged in, throws UserNotLoggedIn error. More...
 
 run ( $subPage)
 Entry point. More...
 
 setContext ( $context)
 Sets the context this SpecialPage is executed in. More...
 
 setHeaders ()
 Sets headers - this should be called from the execute() method of all derived classes! More...
 
 setListed ( $listed)
 Set whether this page is listed in Special:Specialpages, at run-time. More...
 
 userCanExecute (User $user)
 Checks if the given user (identified by an object) can execute this special page (as defined by $mRestriction). More...
 

Static Public Member Functions

static clearCreateaccountToken ()
 Remove any createaccount token attached to the current session. More...
 
static clearLoginThrottle ( $username)
 Clear the login attempt throttle hit count for the (username,current IP) tuple. More...
 
static clearLoginToken ()
 Remove any login token attached to the current session. More...
 
static getCreateaccountToken ()
 Get the createaccount token from the current session. More...
 
static getLoginToken ()
 Get the login token from the current session. More...
 
static incLoginThrottle ( $username)
 Increment the login attempt throttle hit count for the (username,current IP) tuple unless the throttle was already reached. More...
 
static setCreateaccountToken ()
 Randomly generate a new createaccount token and attach it to the current session. More...
 
static setLoginToken ()
 Randomly generate a new login token and attach it to the current session. More...
 
- Static Public Member Functions inherited from SpecialPage
static getSafeTitleFor ( $name, $subpage=false)
 Get a localised Title object for a page name with a possibly unvalidated subpage. More...
 
static getTitleFor ( $name, $subpage=false, $fragment='')
 Get a localised Title object for a specified special page name. More...
 

Public Attributes

 $mAbortLoginErrorMsg = null
 
const ABORTED = 8
 
const CREATE_BLOCKED = 9
 
const EMPTY_PASS = 6
 
const ILLEGAL = 2
 
const NEED_TOKEN = 12
 
const NO_NAME = 1
 
const NOT_EXISTS = 4
 
const RESET_PASS = 7
 
const SUCCESS = 0
 
const THROTTLED = 10
 
const USER_BLOCKED = 11
 
const WRONG_PASS = 5
 
const WRONG_PLUGIN_PASS = 3
 
const WRONG_TOKEN = 13
 

Protected Member Functions

 getGroupName ()
 Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'. More...
 
 resetLoginForm (Message $msg)
 Show the Special:ChangePassword form, with custom message. More...
 
- Protected Member Functions inherited from SpecialPage
 addFeedLinks ( $params)
 Adds RSS/atom links. More...
 
 afterExecute ( $subPage)
 Gets called after. More...
 
 beforeExecute ( $subPage)
 Gets called before. More...
 
 getRobotPolicy ()
 Return the robot policy. More...
 

Protected Attributes

 $mAction
 
 $mCookieCheck
 
 $mCreateaccount
 
 $mCreateaccountMail
 
 $mDomain
 
 $mEmail
 
 $mLanguage
 
 $mLoginattempt
 
 $mPassword
 
 $mPosted
 
 $mRealName
 
 $mReason
 
 $mRemember
 
 $mReturnTo
 
 $mReturnToQuery
 
 $mRetype
 
 $mSkipCookieCheck
 
 $mStickHTTPS
 
 $mToken
 
 $mType
 
 $mUsername
 
- Protected Attributes inherited from SpecialPage
IContextSource $mContext
 Current request context. More...
 
 $mIncludable
 
 $mIncluding
 
 $mName
 

Private Member Functions

 displaySuccessfulAction ( $title, $msgname, $injected_html)
 Display an "successful action" page. More...
 
 executeReturnTo ( $type)
 Add a "return to" link or redirect to it. More...
 
 mainLoginForm ( $msg, $msgtype='error')
 
 renewSessionId ()
 Renew the user's session id, using strong entropy. More...
 
 showCreateOrLoginLink (&$user)
 Whether the login/create account form should display a link to the other form (in addition to whatever the skin provides). More...
 
 successfulCreation ()
 Run any hooks registered for logins, then display a message welcoming the user. More...
 
 successfulLogin ()
 Run any hooks registered for logins, then HTTP redirect to $this->mReturnTo (or Main Page if that's undefined). More...
 

Private Attributes

 $mLoaded = false
 
WebRequest $mOverrideRequest = null
 
WebRequest $mRequest = null
 Effective request; set at the beginning of load *. More...
 
 $mSecureLoginUrl
 
 $mTempPasswordUsed
 

Detailed Description

Implements Special:UserLogin.

Definition at line 29 of file SpecialUserlogin.php.

Constructor & Destructor Documentation

◆ __construct()

LoginForm::__construct (   $request = null)
Parameters
WebRequest$request

Definition at line 80 of file SpecialUserlogin.php.

References $request.

Member Function Documentation

◆ addNewAccount()

◆ addNewAccountInternal()

◆ addNewAccountMailPassword()

LoginForm::addNewAccountMailPassword ( )

◆ attemptAutoCreate()

LoginForm::attemptAutoCreate (   $user)

Attempt to automatically create a user on login.

Only succeeds if there is an external authentication method which allows it.

Parameters
$userUser
Returns
integer Status code

Definition at line 769 of file SpecialUserlogin.php.

References $mPassword, $user, ABORTED, array(), CREATE_BLOCKED, SpecialPage\getUser(), global, initUser(), NOT_EXISTS, SUCCESS, wfDebug(), wfRunHooks(), and WRONG_PLUGIN_PASS.

Referenced by authenticateUserData().

◆ authenticateUserData()

LoginForm::authenticateUserData ( )

Internally authenticate the login request.

This may create a local account as a side effect if the authentication plugin allows transparent local account creation.

Returns
int

Definition at line 579 of file SpecialUserlogin.php.

References $retval, $wgUser, ABORTED, array(), attemptAutoCreate(), clearLoginThrottle(), SpecialPage\getContext(), SpecialPage\getName(), SpecialPage\getUser(), global, ILLEGAL, incLoginThrottle(), User\isUsableName(), load(), NEED_TOKEN, User\newFromName(), NO_NAME, RESET_PASS, setLoginToken(), SUCCESS, THROTTLED, USER_BLOCKED, wfDebug(), wfRunHooks(), WRONG_PASS, and WRONG_TOKEN.

Referenced by processLogin().

◆ clearCreateaccountToken()

static LoginForm::clearCreateaccountToken ( )
static

Remove any createaccount token attached to the current session.

Definition at line 1425 of file SpecialUserlogin.php.

References global.

Referenced by addNewAccountInternal().

◆ clearLoginThrottle()

static LoginForm::clearLoginThrottle (   $username)
static

Clear the login attempt throttle hit count for the (username,current IP) tuple.

Parameters
string$usernameThe user name
Returns
void

Definition at line 752 of file SpecialUserlogin.php.

References $wgMemc, User\getCanonicalName(), and global.

Referenced by SpecialChangeEmail\attemptChange(), SpecialChangePassword\attemptReset(), and authenticateUserData().

◆ clearLoginToken()

static LoginForm::clearLoginToken ( )
static

Remove any login token attached to the current session.

Definition at line 1399 of file SpecialUserlogin.php.

References global.

Referenced by processLogin().

◆ cookieRedirectCheck()

LoginForm::cookieRedirectCheck (   $type)
Access:\n private

Definition at line 1446 of file SpecialUserlogin.php.

References $mReturnTo, $mReturnToQuery, $query, $type, array(), SpecialPage\getOutput(), and SpecialPage\getTitleFor().

Referenced by addNewAccount(), and processLogin().

◆ displaySuccessfulAction()

LoginForm::displaySuccessfulAction (   $title,
  $msgname,
  $injected_html 
)
private

Display an "successful action" page.

Parameters
string | Message$titlepage's title
$msgnamestring
$injected_htmlstring

Definition at line 1044 of file SpecialUserlogin.php.

References $out, $title, executeReturnTo(), SpecialPage\getName(), SpecialPage\getOutput(), SpecialPage\getUser(), and wfEscapeWikiText().

Referenced by successfulCreation(), and successfulLogin().

◆ execute()

LoginForm::execute (   $subPage)

Default execute method Checks user permissions, calls the function given in mFunction.

This must be overridden by subclasses; it will be made abstract in a future version

Parameters
string | null$subPage

Reimplemented from SpecialPage.

Definition at line 169 of file SpecialUserlogin.php.

References $query, $title, addNewAccount(), addNewAccountMailPassword(), array(), SpecialPage\getFullTitle(), SpecialPage\getOutput(), SpecialPage\getRequest(), global, load(), mainLoginForm(), onCookieRedirectCheck(), processLogin(), PROTO_HTTPS, SpecialPage\setHeaders(), wfAppendQuery(), wfCanIPUseHTTPS(), and wfSetupSession().

◆ executeReturnTo()

LoginForm::executeReturnTo (   $type)
private

Add a "return to" link or redirect to it.

Parameters
$typestring, one of the following:
  • error: display a return to link ignoring $wgRedirectOnLogin
  • success: display a return to link using $wgRedirectOnLogin if needed
  • successredirect: send an HTTP redirect using $wgRedirectOnLogin if needed

Definition at line 1123 of file SpecialUserlogin.php.

References $mReturnTo, $options, $type, array(), SpecialPage\getOutput(), global, Title\newFromText(), Title\newMainPage(), PROTO_HTTP, PROTO_HTTPS, PROTO_RELATIVE, and wfCgiToArray().

Referenced by addNewAccountMailPassword(), displaySuccessfulAction(), showReturnToPage(), and successfulLogin().

◆ getCreateaccountToken()

static LoginForm::getCreateaccountToken ( )
static

Get the createaccount token from the current session.

Returns
Mixed

Definition at line 1408 of file SpecialUserlogin.php.

References global.

Referenced by ApiCreateAccount\execute(), ApiCreateAccountTest\testExistingUser(), ApiCreateAccountTest\testInvalidEmail(), ApiCreateAccountTest\testNoName(), and ApiCreateAccountTest\testNoPassword().

◆ getDescription()

LoginForm::getDescription ( )

Returns the name that goes in the <h1> in the special page itself, and also the name that will be listed in Special:Specialpages.

Derived classes can override this, but usually it is easier to keep the default behavior.

Returns
string

Reimplemented from SpecialPage.

Definition at line 158 of file SpecialUserlogin.php.

References SpecialPage\msg().

◆ getGroupName()

LoginForm::getGroupName ( )
protected

Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.

Returns
string
Since
1.21

Reimplemented from SpecialPage.

Definition at line 1536 of file SpecialUserlogin.php.

◆ getLoginToken()

static LoginForm::getLoginToken ( )
static

Get the login token from the current session.

Returns
Mixed

Definition at line 1380 of file SpecialUserlogin.php.

References global.

Referenced by SpecialChangePassword\getFormFields(), SpecialChangePassword\onSubmit(), and SpecialChangePassword\onSuccess().

◆ hasSessionCookie()

LoginForm::hasSessionCookie ( )

Check if a session cookie is present.

This will not pick up a cookie set during this request, but is meant to ensure that the client is returning the cookie which was set on a previous pass through the system.

Access:\n private
Returns
bool

Definition at line 1370 of file SpecialUserlogin.php.

References SpecialPage\getRequest(), global, and true.

Referenced by addNewAccount(), onCookieRedirectCheck(), and processLogin().

◆ incLoginThrottle()

static LoginForm::incLoginThrottle (   $username)
static

Increment the login attempt throttle hit count for the (username,current IP) tuple unless the throttle was already reached.

Parameters
string$usernameThe user name
Returns
Bool|Integer The integer hit count or True if it is already at the limit

Definition at line 723 of file SpecialUserlogin.php.

References $count, $wgMemc, User\getCanonicalName(), and global.

Referenced by SpecialChangeEmail\attemptChange(), SpecialChangePassword\attemptReset(), and authenticateUserData().

◆ initUser()

LoginForm::initUser (   $u,
  $autocreate 
)

Actually add a user to the database.

Give it a User object that has been initialised with a name.

Parameters
$uUser object.
$autocreateboolean – true if this is an autocreation via auth plugin
Returns
Status object, with the User object in the value member on success
Access:\n private

Definition at line 542 of file SpecialUserlogin.php.

References DeferredUpdates\addUpdate(), global, WatchedItem\IGNORE_USER_RIGHTS, and Status\newGood().

Referenced by addNewAccountInternal(), and attemptAutoCreate().

◆ load()

LoginForm::load ( )

◆ mailPasswordInternal()

LoginForm::mailPasswordInternal (   $u,
  $throttle = true,
  $emailTitle = 'passwordremindertitle',
  $emailText = 'passwordremindertext' 
)
Parameters
$uUser object
$throttleBoolean
string$emailTitlemessage name of email title
string$emailTextmessage name of email text
Returns
Status object

Definition at line 957 of file SpecialUserlogin.php.

References array(), SpecialPage\getRequest(), SpecialPage\getUser(), global, SpecialPage\msg(), Status\newFatal(), Title\newMainPage(), text, and wfRunHooks().

Referenced by addNewAccountMailPassword().

◆ mainLoginForm()

◆ makeLanguageSelector()

LoginForm::makeLanguageSelector ( )

Produce a bar of links which allow the user to select another language during login/registration but retain "returnto".

Returns
string

Definition at line 1482 of file SpecialUserlogin.php.

References array(), as, SpecialPage\getLanguage(), makeLanguageSelectorLink(), and SpecialPage\msg().

Referenced by mainLoginForm().

◆ makeLanguageSelectorLink()

LoginForm::makeLanguageSelectorLink (   $text,
  $lang 
)

Create a language selector link for a particular language Links back to this page preserving type and returnto.

Parameters
string$textLink text
string$langLanguage code
Returns
string

Definition at line 1510 of file SpecialUserlogin.php.

References $mReturnTo, $mReturnToQuery, $query, array(), Language\factory(), SpecialPage\getLanguage(), SpecialPage\getPageTitle(), and Linker\linkKnown().

Referenced by makeLanguageSelector().

◆ onCookieRedirectCheck()

LoginForm::onCookieRedirectCheck (   $type)
Access:\n private

Definition at line 1461 of file SpecialUserlogin.php.

References $type, hasSessionCookie(), mainLoginForm(), SpecialPage\msg(), successfulLogin(), and text.

Referenced by execute().

◆ processLogin()

◆ renewSessionId()

LoginForm::renewSessionId ( )
private

Renew the user's session id, using strong entropy.

Definition at line 1433 of file SpecialUserlogin.php.

References SpecialPage\getRequest(), global, and wfResetSessionID().

Referenced by processLogin().

◆ resetLoginForm()

LoginForm::resetLoginForm ( Message  $msg)
protected

Show the Special:ChangePassword form, with custom message.

Parameters
Message$msg

Definition at line 936 of file SpecialUserlogin.php.

References array(), SpecialPage\getContext(), and wfRunHooks().

Referenced by processLogin().

◆ setCreateaccountToken()

static LoginForm::setCreateaccountToken ( )
static

Randomly generate a new createaccount token and attach it to the current session.

Definition at line 1417 of file SpecialUserlogin.php.

References MWCryptRand\generateHex(), and global.

Referenced by addNewAccountInternal(), mainLoginForm(), and ApiCreateAccountTest\setUp().

◆ setLoginToken()

static LoginForm::setLoginToken ( )
static

Randomly generate a new login token and attach it to the current session.

Definition at line 1389 of file SpecialUserlogin.php.

References MWCryptRand\generateHex(), and global.

Referenced by authenticateUserData(), SpecialChangePassword\getFormFields(), mainLoginForm(), and SpecialChangePassword\onSuccess().

◆ showCreateOrLoginLink()

LoginForm::showCreateOrLoginLink ( $user)
private

Whether the login/create account form should display a link to the other form (in addition to whatever the skin provides).

Parameters
$userUser
Returns
bool

Definition at line 1350 of file SpecialUserlogin.php.

References $user.

Referenced by mainLoginForm().

◆ showReturnToPage()

LoginForm::showReturnToPage (   $type,
  $returnTo = '',
  $returnToQuery = '',
  $stickHTTPs = false 
)

Add a "return to" link or redirect to it.

Extensions can use this to reuse the "return to" logic after inject steps (such as redirection) into the login process.

Parameters
$typestring, one of the following:
  • error: display a return to link ignoring $wgRedirectOnLogin
  • success: display a return to link using $wgRedirectOnLogin if needed
  • successredirect: send an HTTP redirect using $wgRedirectOnLogin if needed
string$returnTo
array | string$returnToQuery
bool$stickHTTPsKeep redirect link on HTTPs
Since
1.22

Definition at line 1106 of file SpecialUserlogin.php.

References $type, and executeReturnTo().

◆ successfulCreation()

LoginForm::successfulCreation ( )
private

Run any hooks registered for logins, then display a message welcoming the user.

Definition at line 1018 of file SpecialUserlogin.php.

References array(), displaySuccessfulAction(), SpecialPage\getName(), SpecialPage\getUser(), SpecialPage\msg(), and wfRunHooks().

Referenced by addNewAccount().

◆ successfulLogin()

LoginForm::successfulLogin ( )
private

Run any hooks registered for logins, then HTTP redirect to $this->mReturnTo (or Main Page if that's undefined).

Formerly we had a nice message here, but that's really not as useful as just being sent to wherever you logged in from. It should be clear that the action was successful, given the lack of error messages plus the appearance of your name in the upper right.

Definition at line 998 of file SpecialUserlogin.php.

References array(), displaySuccessfulAction(), executeReturnTo(), SpecialPage\getUser(), SpecialPage\msg(), and wfRunHooks().

Referenced by onCookieRedirectCheck(), and processLogin().

◆ userBlockedMessage()

LoginForm::userBlockedMessage ( Block  $block)

Output a message that informs the user that they cannot create an account because there is a block on them or their IP which prevents account creation.

Note that User::isBlockedFromCreateAccount(), which gets this block, ignores the 'hardblock' setting on blocks (bug 13611).

Parameters
$blockBlock the block causing this error
Exceptions
ErrorPageError

Definition at line 1064 of file SpecialUserlogin.php.

References array(), Block\getByName(), SpecialPage\getRequest(), Block\getTarget(), Block\getType(), SpecialPage\msg(), and Block\TYPE_RANGE.

Referenced by addNewAccountInternal(), mainLoginForm(), and processLogin().

Member Data Documentation

◆ $mAbortLoginErrorMsg

LoginForm::$mAbortLoginErrorMsg = null

Definition at line 45 of file SpecialUserlogin.php.

◆ $mAction

LoginForm::$mAction
protected

Definition at line 53 of file SpecialUserlogin.php.

◆ $mCookieCheck

LoginForm::$mCookieCheck
protected

Definition at line 51 of file SpecialUserlogin.php.

◆ $mCreateaccount

LoginForm::$mCreateaccount
protected

Definition at line 54 of file SpecialUserlogin.php.

◆ $mCreateaccountMail

LoginForm::$mCreateaccountMail
protected

Definition at line 55 of file SpecialUserlogin.php.

Referenced by load().

◆ $mDomain

LoginForm::$mDomain
protected

Definition at line 59 of file SpecialUserlogin.php.

◆ $mEmail

LoginForm::$mEmail
protected

Definition at line 58 of file SpecialUserlogin.php.

◆ $mLanguage

LoginForm::$mLanguage
protected

Definition at line 60 of file SpecialUserlogin.php.

Referenced by mainLoginForm().

◆ $mLoaded

LoginForm::$mLoaded = false
private

Definition at line 70 of file SpecialUserlogin.php.

◆ $mLoginattempt

LoginForm::$mLoginattempt
protected

Definition at line 56 of file SpecialUserlogin.php.

◆ $mOverrideRequest

WebRequest LoginForm::$mOverrideRequest = null
private

Definition at line 73 of file SpecialUserlogin.php.

Referenced by load().

◆ $mPassword

LoginForm::$mPassword
protected

Definition at line 48 of file SpecialUserlogin.php.

Referenced by attemptAutoCreate().

◆ $mPosted

LoginForm::$mPosted
protected

Definition at line 52 of file SpecialUserlogin.php.

◆ $mRealName

LoginForm::$mRealName
protected

Definition at line 67 of file SpecialUserlogin.php.

◆ $mReason

LoginForm::$mReason
protected

Definition at line 66 of file SpecialUserlogin.php.

◆ $mRemember

LoginForm::$mRemember
protected

Definition at line 57 of file SpecialUserlogin.php.

◆ $mRequest

WebRequest LoginForm::$mRequest = null
private

Effective request; set at the beginning of load *.

Definition at line 75 of file SpecialUserlogin.php.

◆ $mReturnTo

LoginForm::$mReturnTo
protected

◆ $mReturnToQuery

LoginForm::$mReturnToQuery
protected

Definition at line 62 of file SpecialUserlogin.php.

Referenced by cookieRedirectCheck(), and makeLanguageSelectorLink().

◆ $mRetype

LoginForm::$mRetype
protected

Definition at line 49 of file SpecialUserlogin.php.

◆ $mSecureLoginUrl

LoginForm::$mSecureLoginUrl
private

Definition at line 71 of file SpecialUserlogin.php.

◆ $mSkipCookieCheck

LoginForm::$mSkipCookieCheck
protected

Definition at line 61 of file SpecialUserlogin.php.

◆ $mStickHTTPS

LoginForm::$mStickHTTPS
protected

Definition at line 64 of file SpecialUserlogin.php.

◆ $mTempPasswordUsed

LoginForm::$mTempPasswordUsed
private

Definition at line 69 of file SpecialUserlogin.php.

◆ $mToken

LoginForm::$mToken
protected

Definition at line 63 of file SpecialUserlogin.php.

◆ $mType

LoginForm::$mType
protected

Definition at line 65 of file SpecialUserlogin.php.

◆ $mUsername

LoginForm::$mUsername
protected

Definition at line 47 of file SpecialUserlogin.php.

◆ ABORTED

const LoginForm::ABORTED = 8

◆ CREATE_BLOCKED

const LoginForm::CREATE_BLOCKED = 9

Definition at line 39 of file SpecialUserlogin.php.

Referenced by attemptAutoCreate(), ApiLogin\execute(), and processLogin().

◆ EMPTY_PASS

const LoginForm::EMPTY_PASS = 6

Definition at line 36 of file SpecialUserlogin.php.

Referenced by ApiLogin\execute(), and processLogin().

◆ ILLEGAL

const LoginForm::ILLEGAL = 2

Definition at line 32 of file SpecialUserlogin.php.

Referenced by authenticateUserData(), ApiLogin\execute(), and processLogin().

◆ NEED_TOKEN

const LoginForm::NEED_TOKEN = 12

Definition at line 42 of file SpecialUserlogin.php.

Referenced by authenticateUserData(), ApiLogin\execute(), and processLogin().

◆ NO_NAME

const LoginForm::NO_NAME = 1

Definition at line 31 of file SpecialUserlogin.php.

Referenced by authenticateUserData(), ApiLogin\execute(), and processLogin().

◆ NOT_EXISTS

const LoginForm::NOT_EXISTS = 4

Definition at line 34 of file SpecialUserlogin.php.

Referenced by attemptAutoCreate(), ApiLogin\execute(), and processLogin().

◆ RESET_PASS

const LoginForm::RESET_PASS = 7

Definition at line 37 of file SpecialUserlogin.php.

Referenced by authenticateUserData(), ApiLogin\execute(), and processLogin().

◆ SUCCESS

const LoginForm::SUCCESS = 0

◆ THROTTLED

const LoginForm::THROTTLED = 10

Definition at line 40 of file SpecialUserlogin.php.

Referenced by authenticateUserData(), ApiLogin\execute(), and processLogin().

◆ USER_BLOCKED

const LoginForm::USER_BLOCKED = 11

Definition at line 41 of file SpecialUserlogin.php.

Referenced by authenticateUserData(), ApiLogin\execute(), and processLogin().

◆ WRONG_PASS

const LoginForm::WRONG_PASS = 5

Definition at line 35 of file SpecialUserlogin.php.

Referenced by ApiLogin\execute(), and processLogin().

◆ WRONG_PLUGIN_PASS

const LoginForm::WRONG_PLUGIN_PASS = 3

Definition at line 33 of file SpecialUserlogin.php.

Referenced by attemptAutoCreate(), ApiLogin\execute(), and processLogin().

◆ WRONG_TOKEN

const LoginForm::WRONG_TOKEN = 13

Definition at line 43 of file SpecialUserlogin.php.

Referenced by authenticateUserData(), ApiLogin\execute(), and processLogin().


The documentation for this class was generated from the following file: