mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add get name with email as one string from new user model to prevent double code
This commit is contained in:
parent
07ff9be91e
commit
b35cab768c
@ -52,6 +52,7 @@ namespace model {
|
||||
inline const std::string& getEmail() const { return mEmail; }
|
||||
inline const std::string& getFirstName() const { return mFirstName; }
|
||||
inline const std::string& getLastName() const { return mLastName; }
|
||||
inline std::string getNameWithEmailHtml() const { return mFirstName + " " + mLastName + " <" + mEmail + ">"; }
|
||||
inline const Poco::UInt64& getPasswordHashed() const { return mPasswordHashed; }
|
||||
inline RoleType getRole() const { 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