diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-04-03 21:14:55 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-04-03 21:14:55 +0000 |
commit | 95c2ac5d585bfd1106b173c00b4c29719c08b25f (patch) | |
tree | 817b246518d03a311a9d96f18cbd6c63de0bd60e /core/lostpassword | |
parent | cd05dfb9430da93f2584d928ef963c625562c8fa (diff) | |
download | nextcloud-server-95c2ac5d585bfd1106b173c00b4c29719c08b25f.tar.gz nextcloud-server-95c2ac5d585bfd1106b173c00b4c29719c08b25f.zip |
Dont typecast variables as integers
Diffstat (limited to 'core/lostpassword')
-rw-r--r-- | core/lostpassword/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lostpassword/index.php b/core/lostpassword/index.php index da0428e3ced..9529c0c957c 100644 --- a/core/lostpassword/index.php +++ b/core/lostpassword/index.php @@ -12,7 +12,7 @@ require_once('../../lib/base.php'); // Someone lost their password: if (isset($_POST['user'])) { if (OC_User::userExists($_POST['user'])) { - $token = sha1($_POST['user']+uniqId()); + $token = sha1($_POST['user'].uniqId()); OC_Preferences::setValue($_POST['user'], 'owncloud', 'lostpassword', $token); $email = OC_Preferences::getValue($_POST['user'], 'settings', 'email', ''); if (!empty($email)) { |