Manual:Hooks/UserLoginForm

Details

 * &$template: UsercreateTemplate instance for the form

Deprecated
From MediaWiki 1.27 on, the hook is deprecated and superseded by AuthManager functionality. Login form fields should be added by some authentication provider returning an instance of an appropriate  subclass instance in , and that object can define the fields via. The authentication provider can read the submitted data from the  object via its   or  /  methods.

For purely cosmetic changes to the form, which don't need to be reflected to the API (such as adding more information or interactive widgets) the hook can be used.