mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-11-03 12:17:46 +00:00
Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
@@ -800,8 +800,9 @@ namespace OpenWifi {
|
||||
|
||||
if (StorageService()->SubDB().GetUserByEmail(Email, UInfo)) {
|
||||
switch (Reason) {
|
||||
|
||||
DBGLINE
|
||||
case MessagingTemplates::SUB_FORGOT_PASSWORD: {
|
||||
DBGLINE
|
||||
MessageAttributes Attrs;
|
||||
Attrs[RECIPIENT_EMAIL] = UInfo.email;
|
||||
Attrs[LOGO] = GetSubLogoAssetURI();
|
||||
@@ -810,15 +811,19 @@ namespace OpenWifi {
|
||||
"/actionLink?action=sub_password_reset&id=" + LinkId;
|
||||
Attrs[ACTION_LINK_HTML] =
|
||||
"/api/v1/actionLink?action=sub_password_reset&id=" + LinkId;
|
||||
DBGLINE
|
||||
SMTPMailerService()->AddSubVars(Attrs);
|
||||
DBGLINE
|
||||
SMTPMailerService()->SendMessage(
|
||||
UInfo.email,
|
||||
MessagingTemplates::TemplateName(MessagingTemplates::SUB_FORGOT_PASSWORD,
|
||||
OperatorName),
|
||||
Attrs, true);
|
||||
DBGLINE
|
||||
} break;
|
||||
|
||||
case MessagingTemplates::SUB_EMAIL_VERIFICATION: {
|
||||
DBGLINE
|
||||
MessageAttributes Attrs;
|
||||
Attrs[RECIPIENT_EMAIL] = UInfo.email;
|
||||
Attrs[LOGO] = GetSubLogoAssetURI();
|
||||
@@ -827,16 +832,20 @@ namespace OpenWifi {
|
||||
"/actionLink?action=sub_email_verification&id=" + LinkId;
|
||||
Attrs[ACTION_LINK_HTML] =
|
||||
"/api/v1/actionLink?action=sub_email_verification&id=" + LinkId;
|
||||
DBGLINE
|
||||
SMTPMailerService()->AddSubVars(Attrs);
|
||||
DBGLINE
|
||||
SMTPMailerService()->SendMessage(
|
||||
UInfo.email,
|
||||
MessagingTemplates::TemplateName(MessagingTemplates::SUB_EMAIL_VERIFICATION,
|
||||
OperatorName),
|
||||
Attrs, true);
|
||||
UInfo.waitingForEmailCheck = true;
|
||||
DBGLINE
|
||||
} break;
|
||||
|
||||
case MessagingTemplates::SUB_SIGNUP_VERIFICATION: {
|
||||
DBGLINE
|
||||
MessageAttributes Attrs;
|
||||
Attrs[RECIPIENT_EMAIL] = UInfo.email;
|
||||
Attrs[LOGO] = GetSubLogoAssetURI();
|
||||
@@ -845,20 +854,25 @@ namespace OpenWifi {
|
||||
"/actionLink?action=signup_verification&id=" + LinkId;
|
||||
Attrs[ACTION_LINK_HTML] =
|
||||
"/api/v1/actionLink?action=signup_verification&id=" + LinkId;
|
||||
DBGLINE
|
||||
SMTPMailerService()->AddSubVars(Attrs);
|
||||
DBGLINE
|
||||
SMTPMailerService()->SendMessage(
|
||||
UInfo.email,
|
||||
MessagingTemplates::TemplateName(MessagingTemplates::SUB_SIGNUP_VERIFICATION,
|
||||
OperatorName),
|
||||
Attrs, true);
|
||||
UInfo.waitingForEmailCheck = true;
|
||||
DBGLINE
|
||||
} break;
|
||||
|
||||
default:
|
||||
DBGLINE
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
DBGLINE
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user