OTP : can specify another url
This commit is contained in:
parent
972641f7c5
commit
c760989646
2 changed files with 5 additions and 3 deletions
|
|
@ -2063,13 +2063,15 @@ Voici votre code secret pour NOALYSS : $code
|
|||
}
|
||||
/**
|
||||
* @brief send an email with link to the user
|
||||
* @param $base_url (string) http url to scan the QRCode, the url in the
|
||||
* mail will be {$base_url}/index.php?otp={$uuid}
|
||||
*/
|
||||
function send_link_otp() {
|
||||
function send_link_otp($base_url=null) {
|
||||
$mail = new \Sendmail();
|
||||
$mail->set_from(ADMIN_WEB);
|
||||
$mail->mailto($this->getEmail());
|
||||
$mail->set_subject(_("NOALYSS : Double authentification lien pour 2FA: OTP"));
|
||||
$noalyss_url = NOALYSS_URL;
|
||||
$noalyss_url = $base_url??NOALYSS_URL;
|
||||
$uuid = guidv4();
|
||||
$valid_time=new \DateTime();
|
||||
$valid_time->add(new \DateInterval('PT12H'));
|
||||
|
|
|
|||
|
|
@ -376,7 +376,7 @@ if (!defined("DEFAULT_SERVER_VIDEO_CONF")) {
|
|||
}
|
||||
|
||||
define ("VATCHECK_URL","https://ec.europa.eu/taxation_customs/vies/rest-api/");
|
||||
|
||||
|
||||
/**
|
||||
* @brief load automatically class
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue