summaryrefslogtreecommitdiffstats
path: root/core/lostpassword
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-09-03 22:53:03 -0700
committerMorris Jobke <morris.jobke@gmail.com>2013-09-03 22:53:03 -0700
commit09187f3b3b30e6f810c6afff7332615ed472154e (patch)
tree3018bef5d383a3da3f1a7709acb7e7910a4fe935 /core/lostpassword
parent6435e18e95bc283af051d141fad204660d7f7eba (diff)
parente5fc7b9dbeb01ac116bb132903c562c8f7d3c5b3 (diff)
downloadnextcloud-server-09187f3b3b30e6f810c6afff7332615ed472154e.tar.gz
nextcloud-server-09187f3b3b30e6f810c6afff7332615ed472154e.zip
Merge pull request #4449 from owncloud/clean_up_util
Clean up \OC\Util
Diffstat (limited to 'core/lostpassword')
-rw-r--r--core/lostpassword/controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lostpassword/controller.php b/core/lostpassword/controller.php
index 74a5be2b96f..f761e45d25f 100644
--- a/core/lostpassword/controller.php
+++ b/core/lostpassword/controller.php
@@ -42,7 +42,7 @@ class OC_Core_LostPassword_Controller {
}
if (OC_User::userExists($_POST['user']) && $continue) {
- $token = hash('sha256', OC_Util::generate_random_bytes(30).OC_Config::getValue('passwordsalt', ''));
+ $token = hash('sha256', OC_Util::generateRandomBytes(30).OC_Config::getValue('passwordsalt', ''));
OC_Preferences::setValue($_POST['user'], 'owncloud', 'lostpassword',
hash('sha256', $token)); // Hash the token again to prevent timing attacks
$email = OC_Preferences::getValue($_POST['user'], 'settings', 'email', '');