|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <accounts.h>
Public Member Functions | |
| Accounts (Database &database) | |
| absl::StatusOr< uint32_t > | Create (const std::string &username, const std::string &password_hash) |
| Returns an AlreadyExists error if the name is taken. | |
| absl::StatusOr< Account > | Find (const std::string &username) |
| Returns a NotFound error if there's no account by that name. | |
Definition at line 24 of file accounts.h.
|
inlineexplicit |
Definition at line 26 of file accounts.h.
| absl::StatusOr< uint32_t > nanommo::Accounts::Create | ( | const std::string & | username, |
| const std::string & | password_hash ) |
Returns an AlreadyExists error if the name is taken.
Definition at line 40 of file accounts.cc.
| absl::StatusOr< Account > nanommo::Accounts::Find | ( | const std::string & | username | ) |
Returns a NotFound error if there's no account by that name.
Definition at line 53 of file accounts.cc.