Skip to content
Snippets Groups Projects
Commit 06670cef authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #4304 from tripflex/lostpw-themed

use theme name and title for password reset
parents 994537a5 f5d23c46
Branches
No related tags found
No related merge requests found
......@@ -57,7 +57,8 @@ class OC_Core_LostPassword_Controller {
$l = OC_L10N::get('core');
$from = OCP\Util::getDefaultEmailAddress('lostpassword-noreply');
try {
OC_Mail::send($email, $_POST['user'], $l->t('ownCloud password reset'), $msg, $from, 'ownCloud');
$defaults = new OC_Defaults();
OC_Mail::send($email, $_POST['user'], $l->t('%s password reset', array($defaults->getName())), $msg, $from, $defaults->getName());
} catch (Exception $e) {
OC_Template::printErrorPage( 'A problem occurs during sending the e-mail please contact your administrator.');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment