Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/admin/cli/reset_password.php File Reference

Go to the source code of this file.

Namespaces

namespace  core

Enumerations

enum  CLI_SCRIPT

Variables

 $prompt = "enter username (manual authentication only)"
 $username = cli_input($prompt)
 $password = cli_input($prompt)
 $errmsg = ''
if(!check_password_policy($password,
$errmsg)) 
$hashedpassword = hash_internal_user_password($password)

Enumeration Type Documentation

enum CLI_SCRIPT

Definition at line 27 of file reset_password.php.


Variable Documentation

$errmsg = ''

Definition at line 70 of file reset_password.php.

if (!check_password_policy($password, $errmsg)) $hashedpassword = hash_internal_user_password($password)

Definition at line 75 of file reset_password.php.

$password = cli_input($prompt)

Definition at line 68 of file reset_password.php.

if (!$user=$DB->get_record('user', array('auth'=>'manual', 'username'=> $username, 'mnethostid'=> $CFG->mnet_localhost_id))) $prompt = "enter username (manual authentication only)"

Definition at line 60 of file reset_password.php.

$username = cli_input($prompt)

Definition at line 61 of file reset_password.php.

 All Data Structures Namespaces Files Functions Variables Enumerations