-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52b64ef
commit 6999e7b
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -354,10 +354,10 @@ public function generate_send_verification_code($form_email) { // generate code | |
$appTitle = lang('common_lang.app_title'); | ||
$email->initialize($emailConfig); | ||
//Sending code to user's orif | ||
$email->setFrom('[email protected]', 'ORIF: Vérification du mail'); | ||
$email->setFrom(getenv('SMTP_ID'), lang('common_lang.app_title')); | ||
// 2nd paramater hard coded since variable not interpreted in SetFrom$email->setTo($form_email); | ||
$email->setSubject('Code de vérification'); | ||
$email->setMessage('Voici votre code de vérification: '.$verification_code); | ||
$email->setSubject(lang('user_lang.mail_verification_code_subject')); | ||
$email->setMessage(lang('user_lang.mail_verification_code_text').$verification_code); | ||
$email->send(false); | ||
|
||
// Set code's expiration timer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters