Skip to content
Snippets Groups Projects
Commit e1b9b65e authored by Bart Visscher's avatar Bart Visscher
Browse files

Use correct appid for lostpassword email preference

parent d5e9c7d5
Branches
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment