nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::Accounts Class Reference

#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.

Detailed Description

Definition at line 24 of file accounts.h.

Constructor & Destructor Documentation

◆ Accounts()

nanommo::Accounts::Accounts ( Database & database)
inlineexplicit

Definition at line 26 of file accounts.h.

Member Function Documentation

◆ Create()

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.

◆ Find()

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.


The documentation for this class was generated from the following files: