JUserHelper::genRandomPassword: Difference between revisions
From Joomla! Documentation
Layout updates |
m preparing for archive only |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
Generate a random password. | Generate a random password. | ||
<source lang="php"> | <source lang="php"> | ||
public static | public static function genRandomPassword ($length=8) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 27: | Line 22: | ||
|- | |- | ||
|} | |} | ||
* '''Returns''' string Random Password | |||
string Random Password | * '''Defined''' on line 471 of libraries/joomla/user/helper.php | ||
* '''Since''' {{JVer|11.1 }} | |||
libraries/joomla/user/helper.php | * '''Referenced by''' | ||
* | ** [[API17:JUser::bind|JUser::bind]] | ||
** [[API17:JPath::isOwner|JPath::isOwner]] | |||
* [[JUser::bind | |||
* [[JPath::isOwner | |||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JUserHelper::genRandomPassword source code''' on [[jplatform:user/helper.php#cl-463|BitBucket]] | |||
* {{JVer|11.1}} Class [[API17:JUserHelper|JUserHelper]] | |||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_User|User]] | |||
* | * [[API17:JUserHelper::genRandomPassword|Other versions of JUserHelper::genRandomPassword]] | ||
* [[JUserHelper::genRandomPassword|Other versions of | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JUserHelper::genRandomPassword | category=JUserHelper::genRandomPassword | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category: | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 03:55, 25 March 2017
JUserHelper::genRandomPassword
Description
Generate a random password.
public static function genRandomPassword ($length=8)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $length | int | 8 | Length of the password to generate |
- Returns string Random Password
- Defined on line 471 of libraries/joomla/user/helper.php
- Since

- Referenced by
See also
JUserHelper::genRandomPassword source code on BitBucket
Class JUserHelper
Subpackage User- Other versions of JUserHelper::genRandomPassword
User contributed notes
Code Examples