JUserHelper::genRandomPassword: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Generate a random password. | Generate a random password. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 33: | Line 33: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_User|User]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_User|User]] | ||
* [[API17:JUserHelper::genRandomPassword|Other versions of JUserHelper::genRandomPassword]] | * [[API17:JUserHelper::genRandomPassword|Other versions of JUserHelper::genRandomPassword]] | ||
===User contributed notes=== | ===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=* | ||
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