diff --git a/build b/build index b393560..cabf43b 100644 --- a/build +++ b/build @@ -1 +1 @@ -23 \ No newline at end of file +24 \ No newline at end of file diff --git a/src/AuthService.cpp b/src/AuthService.cpp index 75055da..b9df0dc 100644 --- a/src/AuthService.cpp +++ b/src/AuthService.cpp @@ -600,7 +600,7 @@ namespace OpenWifi { } else { MessageAttributes Attrs; Attrs[RECIPIENT_EMAIL] = UInfo.userinfo.email; - Attrs[LOGO] = AuthService::GetLogoAssetURI(); + Attrs[LOGO] = AuthService::GetSubLogoAssetURI(); Attrs[SUBJECT] = "Login validation code"; Attrs[CHALLENGE_CODE] = Challenge; return SMTPMailerService()->SendMessage(UInfo.userinfo.email, MessagingTemplates::TemplateName(MessagingTemplates::SUB_VERIFICATION_CODE,OperatorParts[0]), Attrs); @@ -665,7 +665,7 @@ namespace OpenWifi { case MessagingTemplates::SUB_FORGOT_PASSWORD: { MessageAttributes Attrs; Attrs[RECIPIENT_EMAIL] = UInfo.email; - Attrs[LOGO] = GetLogoAssetURI(); + Attrs[LOGO] = GetSubLogoAssetURI(); Attrs[SUBJECT] = "Password reset link"; Attrs[ACTION_LINK] = MicroServiceGetPublicAPIEndPoint() + "/actionLink?action=sub_password_reset&id=" + LinkId ; Attrs[ACTION_LINK_HTML] = "/api/v1/actionLink?action=sub_password_reset&id=" + LinkId ; @@ -676,7 +676,7 @@ namespace OpenWifi { case MessagingTemplates::SUB_EMAIL_VERIFICATION: { MessageAttributes Attrs; Attrs[RECIPIENT_EMAIL] = UInfo.email; - Attrs[LOGO] = GetLogoAssetURI(); + Attrs[LOGO] = GetSubLogoAssetURI(); Attrs[SUBJECT] = "e-mail Address Verification"; Attrs[ACTION_LINK] = MicroServiceGetPublicAPIEndPoint() + "/actionLink?action=sub_email_verification&id=" + LinkId ; Attrs[ACTION_LINK_HTML] = "/api/v1/actionLink?action=sub_email_verification&id=" + LinkId ; @@ -688,7 +688,7 @@ namespace OpenWifi { case MessagingTemplates::SIGNUP_VERIFICATION: { MessageAttributes Attrs; Attrs[RECIPIENT_EMAIL] = UInfo.email; - Attrs[LOGO] = GetLogoAssetURI(); + Attrs[LOGO] = GetSubLogoAssetURI(); Attrs[SUBJECT] = "Signup e-mail Address Verification"; Attrs[ACTION_LINK] = MicroServiceGetPublicAPIEndPoint() + "/actionLink?action=signup_verification&id=" + LinkId ; Attrs[ACTION_LINK_HTML] = "/api/v1/actionLink?action=signup_verification&id=" + LinkId ; diff --git a/src/AuthService.h b/src/AuthService.h index 4ca9921..f12d3b5 100644 --- a/src/AuthService.h +++ b/src/AuthService.h @@ -103,11 +103,19 @@ namespace OpenWifi{ void RevokeSubToken(std::string & Token); [[nodiscard]] static inline const std::string GetLogoAssetURI() { - return MicroServicePublicEndPoint() + "/wwwassets/the_logo.png"; + return MicroServicePublicEndPoint() + "/wwwassets/logo.png"; } [[nodiscard]] static inline const std::string GetLogoAssetFileName() { - return MicroServiceWWWAssetsDir() + "/the_logo.png"; + return MicroServiceWWWAssetsDir() + "/logo.png"; + } + + [[nodiscard]] static inline const std::string GetSubLogoAssetURI() { + return MicroServicePublicEndPoint() + "/wwwassets/sub_logo.png"; + } + + [[nodiscard]] static inline const std::string GetSubLogoAssetFileName() { + return MicroServiceWWWAssetsDir() + "/sub_logo.png"; } inline const std::string & GetPasswordPolicy() const { return PasswordPolicy_; } diff --git a/src/SMTPMailerService.cpp b/src/SMTPMailerService.cpp index 9f69ee6..70df0ad 100644 --- a/src/SMTPMailerService.cpp +++ b/src/SMTPMailerService.cpp @@ -35,7 +35,7 @@ namespace OpenWifi { MailAbandon_ = MicroServiceConfigGetInt("mailer.abandon",2*60*60); UseHTML_ = MicroServiceConfigGetBool("mailer.html",false); Enabled_ = (!MailHost_.empty() && !SenderLoginPassword_.empty() && !SenderLoginUserName_.empty()); - EmailLogo_ = TemplateDir_ + "/" + MicroServiceConfigGetString("mailer.logo","logo.jpg"); + EmailLogo_ = TemplateDir_ + "/" + MicroServiceConfigGetString("mailer.logo","logo.png"); } } diff --git a/src/framework/UI_WebSocketClientServer.cpp b/src/framework/UI_WebSocketClientServer.cpp index 8bda187..6b22dfa 100644 --- a/src/framework/UI_WebSocketClientServer.cpp +++ b/src/framework/UI_WebSocketClientServer.cpp @@ -71,7 +71,6 @@ namespace OpenWifi { } Clients_.erase(Client); UsersConnected_ = Clients_.size(); - std::cout << "How many clients: " << Clients_.size() << std::endl; } void UI_WebSocketClientServer::run() {