API15

Difference between revisions of "JUserHelper"

From Joomla! Documentation

(New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JUserHelper}} ===Defined in==...)
 
Line 27: Line 27:
 
|Generate a random password
 
|Generate a random password
 
|}
 
|}
 +
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.user.helper' );</source>
 
<source lang="php">jimport( 'joomla.user.helper' );</source>

Revision as of 12:27, 25 March 2010

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

[Edit Descripton] Template:Description:JUserHelper

Defined in[edit]

libraries/joomla/user/helper.php

Methods[edit]

Method name Description
activateUser Method to activate a user
getUserId Returns userid if a user exists
getCryptedPassword Formats a password using the current encryption.
getSalt Returns a salt for the appropriate kind of password encryption. Optionally takes a seed and a plaintext password, to extract the seed of an existing password, or for encryption types that use the plaintext in the generation of the salt.
genRandomPassword Generate a random password

Importing[edit]

jimport( 'joomla.user.helper' );

[Edit See Also] Template:SeeAlso:JUserHelper

Examples[edit]

<CodeExamplesForm />