20#ifndef ORES_ACCOUNTS_DOMAIN_LOGIN_INFO_HPP
21#define ORES_ACCOUNTS_DOMAIN_LOGIN_INFO_HPP
24#include <boost/uuid/uuid.hpp>
25#include <boost/asio/ip/address.hpp>
27namespace ores::accounts::domain {
Represents login tracking and security information for an account.
Definition login_info.hpp:32
boost::asio::ip::address last_ip
IP address from the last successful login.
Definition login_info.hpp:69
bool password_reset_required
Flag indicating whether the user must change their password on next login.
Definition login_info.hpp:64
bool locked
Flag indicating whether the account is locked due to security concerns.
Definition login_info.hpp:51
boost::asio::ip::address last_attempt_ip
IP address from the most recent login attempt (successful or failed).
Definition login_info.hpp:74
std::chrono::system_clock::time_point last_login
Timestamp of the last successful login.
Definition login_info.hpp:36
int failed_logins
Count of consecutive failed login attempts since last successful login.
Definition login_info.hpp:46
boost::uuids::uuid account_id
Foreign key referencing the associated account.
Definition login_info.hpp:41
bool online
Flag indicating whether the user is currently logged in.
Definition login_info.hpp:56