mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🔥 removed legacy constructor
This commit is contained in:
parent
0f3a89b770
commit
0954a76b6a
2 changed files with 1 additions and 9 deletions
|
|
@ -5,13 +5,12 @@
|
||||||
|
|
||||||
struct User
|
struct User
|
||||||
{
|
{
|
||||||
uint32_t balance = 0;
|
uint32_t balance;
|
||||||
XXH64_hash_t password;
|
XXH64_hash_t password;
|
||||||
#if MAX_LOG_SIZE > 0
|
#if MAX_LOG_SIZE > 0
|
||||||
Log log;
|
Log log;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
User(std::string &&init_pass) noexcept;
|
|
||||||
User(uint32_t init_bal, std::string &&init_pass) noexcept;
|
User(uint32_t init_bal, std::string &&init_pass) noexcept;
|
||||||
User(uint32_t init_bal, XXH64_hash_t init_pass) noexcept;
|
User(uint32_t init_bal, XXH64_hash_t init_pass) noexcept;
|
||||||
#if MAX_LOG_SIZE > 0
|
#if MAX_LOG_SIZE > 0
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,5 @@
|
||||||
#include "user.h"
|
#include "user.h"
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief User constructor
|
|
||||||
*
|
|
||||||
* @param init_pass initial password
|
|
||||||
*/
|
|
||||||
User::User(std::string &&init_pass) noexcept : password(xxHashStringGen{}(init_pass)) {}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief User Constructor for admins
|
* @brief User Constructor for admins
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue