mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
update email log, use not longer html string
This commit is contained in:
parent
cce7b7d4a9
commit
946b951080
@ -60,7 +60,7 @@ void EmailManager::addEmail(model::Email* email) {
|
||||
std::string log_message = "Email should be sended to: ";
|
||||
auto email_user = email->getUser();
|
||||
if (email_user && email_user->getModel()) {
|
||||
log_message += email_user->getModel()->getNameWithEmailHtml();
|
||||
log_message += email_user->getModel()->getNameWithEmail();
|
||||
}
|
||||
else {
|
||||
log_message += "<missing>";
|
||||
@ -138,7 +138,7 @@ int EmailManager::ThreadFunction()
|
||||
std::string log_message = "Email sended to: ";
|
||||
auto email_user = email->getUser();
|
||||
if (user_model) {
|
||||
log_message += email_user->getModel()->getNameWithEmailHtml();
|
||||
log_message += email_user->getModel()->getNameWithEmail();
|
||||
}
|
||||
else {
|
||||
log_message += "<missing>";
|
||||
|
||||
@ -58,6 +58,7 @@ namespace model {
|
||||
inline const std::string getFirstName() const { std::shared_lock<std::shared_mutex> _lock(mSharedMutex); return mFirstName; }
|
||||
inline const std::string getLastName() const { std::shared_lock<std::shared_mutex> _lock(mSharedMutex); return mLastName; }
|
||||
inline std::string getNameWithEmailHtml() const { std::shared_lock<std::shared_mutex> _lock(mSharedMutex); return mFirstName + " " + mLastName + " <" + mEmail + ">"; }
|
||||
inline std::string getNameWithEmail() const { std::shared_lock<std::shared_mutex> _lock(mSharedMutex); return mFirstName + " " + mLastName + "<" + mEmail + ">"; }
|
||||
inline const Poco::UInt64 getPasswordHashed() const { std::shared_lock<std::shared_mutex> _lock(mSharedMutex); return mPasswordHashed; }
|
||||
inline RoleType getRole() const { std::shared_lock<std::shared_mutex> _lock(mSharedMutex); if (mRole.isNull()) return ROLE_NONE; return static_cast<RoleType>(mRole.value()); }
|
||||
inline const unsigned char* getPublicKey() const { if (mPublicKey.isNull()) return nullptr; return mPublicKey.value().content().data(); }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user