mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
PHRAS-3256 take in account langage in mail
This commit is contained in:
@@ -172,6 +172,10 @@ class UserPasswordCommand extends Command
|
||||
$mail->setLogin($user->getLogin());
|
||||
$mail->setExpiration(new \DateTime('+1 day'));
|
||||
|
||||
if (($locale = $user->getLocale()) != null) {
|
||||
$mail->setLocale($locale);
|
||||
}
|
||||
|
||||
$this->deliver($mail);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user