Skip to content

Commit

Permalink
Merge branch 'master_MDL-38102' of github.com:totara/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed May 7, 2013
2 parents b6009c5 + d7f6936 commit 5946813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/moodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -4485,7 +4485,7 @@ function hash_internal_user_password($password, $fasthash = false) {

$generatedhash = password_hash($password, PASSWORD_DEFAULT, $options);

if ($generatedhash === false) {
if ($generatedhash === false || $generatedhash === null) {
throw new moodle_exception('Failed to generate password hash.');
}

Expand Down

0 comments on commit 5946813

Please sign in to comment.