Actions

J1.5

Difference between revisions of "Password parameter type"

From Joomla! Documentation

(New page: right The password parameter type provides a text box for entry of a password. The password characters will be obscured as they are entered. If the paramete...)
 
(Fix red links)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[Image:Params.password.jpg|right]]
 
[[Image:Params.password.jpg|right]]
The password parameter type provides a text box for entry of a password.  The password characters will be obscured as they are entered.  If the parameter has a saved value this is entered (in obscured form) into the text box.  If not, the default value (if any) is entered.
+
 
 +
{{Ambox|type=notice|text=[[Parameter|Parameters]] have been superseded by [[Form field|form fields]] in Joomla! 1.6. You may want to use the corresponding [[Password form field type]].}}
 +
 
 +
The '''password''' parameter type provides a text box for entry of a password.  The password characters will be obscured as they are entered.  If the parameter has a saved value this is entered (in obscured form) into the text box.  If not, the default value (if any) is entered.
  
 
Note that the password string is stored in ''params.ini'' in cleartext; the stored value is not obscured by any hash function.  Since most web servers will, by default, serve a ''params.ini'' file if the URL is entered in a web browser, this cannot be considered a secure method of holding a password.
 
Note that the password string is stored in ''params.ini'' in cleartext; the stored value is not obscured by any hash function.  Since most web servers will, by default, serve a ''params.ini'' file if the URL is entered in a web browser, this cannot be considered a secure method of holding a password.
Line 16: Line 19:
 
<noinclude>
 
<noinclude>
 
=== See also ===
 
=== See also ===
* [[Text parameter type]]
+
* [[J1.5:Text parameter type|Text parameter type]]
* [[Standard parameter types|Full list of standard parameter types]]
+
* [[J1.5:Standard parameter types|List of standard parameter types]]
 
</noinclude>
 
</noinclude>
[[Category:Templates]]
+
[[Category:Archived version Joomla! 1.5|{{PAGENAME}}]]

Latest revision as of 02:35, 11 June 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Params.password.jpg

The password parameter type provides a text box for entry of a password. The password characters will be obscured as they are entered. If the parameter has a saved value this is entered (in obscured form) into the text box. If not, the default value (if any) is entered.

Note that the password string is stored in params.ini in cleartext; the stored value is not obscured by any hash function. Since most web servers will, by default, serve a params.ini file if the URL is entered in a web browser, this cannot be considered a secure method of holding a password.

  • type (mandatory) must be password.
  • name (mandatory) is the unique name of the parameter.
  • label (mandatory) (translatable) is the descriptive title of the field.
  • size (optional) is the width of the text box in characters. If omitted the width is determined by the browser. The value of size does not limit the number of characters that may be entered.
  • default (optional) is the default password.
  • description (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.
  • class (optional) is a CSS class name for the HTML form field. If omitted this will default to 'text_area'.

Example XML parameter definition:

<param name="mypassword" type="password" default="secret" label="Enter a password" description="" size="5" />

See also