From: Bart Visscher Date: Sun, 18 Dec 2011 22:08:00 +0000 (+0100) Subject: Use correct appid for lostpassword email preference X-Git-Tag: v3.0~79^2~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e1b9b65e4159bdd6e0ed81c8cd6b588f03b3a018;p=nextcloud-server.git Use correct appid for lostpassword email preference --- diff --git a/core/lostpassword/index.php b/core/lostpassword/index.php index de0d393ec78..ede94dab2d7 100644 --- a/core/lostpassword/index.php +++ b/core/lostpassword/index.php @@ -14,7 +14,7 @@ if (isset($_POST['user'])) { if (OC_User::userExists($_POST['user'])) { $token = sha1($_POST['user']+uniqId()); OC_Preferences::setValue($_POST['user'], 'owncloud', 'lostpassword', $token); - $email = OC_Preferences::getValue($_POST['user'], 'lostpassword', 'email', ''); + $email = OC_Preferences::getValue($_POST['user'], 'settings', 'email', ''); if (!empty($email)) { $link = OC_Helper::linkTo('core/lostpassword', 'resetpassword.php', null, true).'?user='.$_POST['user'].'&token='.$token; $tmpl = new OC_Template('core/lostpassword', 'email');