summaryrefslogtreecommitdiffstats
path: root/core/lostpassword
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-08-15 08:49:19 +0200
committerkondou <kondou@ts.unde.re>2013-08-15 15:57:32 +0200
commit9c5416fe4a12acf5631b8822feb942143bf2408f (patch)
treea9d6297ae8400cdf73b1a48a22391c9fae3cced5 /core/lostpassword
parentb9f3bb24261961ead93fb76c1295066cfa666299 (diff)
downloadnextcloud-server-9c5416fe4a12acf5631b8822feb942143bf2408f.tar.gz
nextcloud-server-9c5416fe4a12acf5631b8822feb942143bf2408f.zip
Clean up \OC\Util
- Use camelCase - Add some phpdoc - Fix some indents - Use some more spacing
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', '');