|
lintel 0.2.0
|
#include <UserPasswordChangeDto.h>
Public Member Functions | |
| UserPasswordChangeDto ()=default | |
| UserPasswordChangeDto (std::string userName, std::string oldPassword, std::string newPassword) | |
| const std::string & | getUserName () const |
| const std::string & | getOldPassword () const |
| const std::string & | getNewPassword () const |
| void | serialize (rapidjson::Writer< rapidjson::StringBuffer > *writer) const override |
| bool | deserialize (const rapidjson::Value &obj) override |
Public Member Functions inherited from lintel::JsonSerializable | |
| JsonSerializable ()=default | |
| virtual | ~JsonSerializable ()=default |
| virtual std::string | serialize () const |
| virtual void | deserialize (const std::string &json) |
DTO for changing a user's password (passwords are Base64-encoded).
|
default |
Default constructor
| lintel::UserPasswordChangeDto::UserPasswordChangeDto | ( | std::string | userName, |
| std::string | oldPassword, | ||
| std::string | newPassword | ||
| ) |
Construct from all fields
| userName | the target user name |
| oldPassword | the current password (Base64-encoded) |
| newPassword | the new password (Base64-encoded) |
Deserialize from JSON
| obj | the JSON value |
Reimplemented from lintel::JsonSerializable.
| const std::string & lintel::UserPasswordChangeDto::getNewPassword | ( | ) | const |
Get the new password
| const std::string & lintel::UserPasswordChangeDto::getOldPassword | ( | ) | const |
Get the current password
| const std::string & lintel::UserPasswordChangeDto::getUserName | ( | ) | const |
Get the target user name
|
overridevirtual |