]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use correct appid for lostpassword email preference
authorBart Visscher <bartv@thisnet.nl>
Sun, 18 Dec 2011 22:08:00 +0000 (23:08 +0100)
committerBart Visscher <bartv@thisnet.nl>
Sun, 18 Dec 2011 22:10:43 +0000 (23:10 +0100)
core/lostpassword/index.php

index de0d393ec783ec109a8926bbd402e158d736e570..ede94dab2d7542de382d439b233681cf1317a77e 100644 (file)
@@ -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');