diff --git a/include/class/noalyss_user.class.php b/include/class/noalyss_user.class.php index 69498d3db..4e7c9f152 100644 --- a/include/class/noalyss_user.class.php +++ b/include/class/noalyss_user.class.php @@ -2018,6 +2018,7 @@ class Noalyss_User { if ( $this->authent_method !=1 ) { return false; } $mail=new \Sendmail(); + $mail->set_format("HTML"); $mail->set_from(ADMIN_WEB); $mail->mailto($this->getEmail()); $mail->set_subject(_("NOALYSS : votre code secret ")); @@ -2029,9 +2030,12 @@ class Noalyss_User } $otp=new \Noalyss\OTP(); $code=$otp->compute_code($this->otp_secret); - $message="Bonjour, - -Voici votre code secret pour NOALYSS : $code + $message="
Bonjour,
+
+
+
Voici votre code secret pour NOALYSS : $code +
+ "; @@ -2068,6 +2072,7 @@ Voici votre code secret pour NOALYSS : $code */ function send_link_otp($base_url=null) { $mail = new \Sendmail(); + $mail->set_format("HTML"); $mail->set_from(ADMIN_WEB); $mail->mailto($this->getEmail()); $mail->set_subject(_("NOALYSS : Double authentification lien pour 2FA: OTP")); @@ -2079,20 +2084,27 @@ Voici votre code secret pour NOALYSS : $code /** * save in DB first */ - $message = "Bonjour, - + $message = "Bonjour,
+Afin de pouvoir utiliser la double authentification avec 2FA: OTP, pourriez-vous suivre ce lien et scanner le QRCode avec votre application android freeOTP ou Google Authenticator. - - Ce lien expirera le {$str_time}. +
+Ce lien expirera le {$str_time}.
+
+
+
+
+ {$noalyss_url}/index.php?otp={$uuid}
+
Merci d'utiliser NOALYSS +
+Bien cordialement, - +
"; try {