mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
use theme name and title for password reset
password reset email uses owncloud, updated to use theme settings
This commit is contained in:
parent
afc8ee721d
commit
8edc0f210b
1 changed files with 2 additions and 1 deletions
|
|
@ -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($defaults->getTitle(); . ' password reset'), $msg, $from, $defaults->getName());
|
||||
} catch (Exception $e) {
|
||||
OC_Template::printErrorPage( 'A problem occurs during sending the e-mail please contact your administrator.');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue