ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
login_info Struct Referencefinal

Represents login tracking and security information for an account. More...

#include <login_info.hpp>

Collaboration diagram for login_info:
Collaboration graph

Public Attributes

std::chrono::system_clock::time_point last_login
 Timestamp of the last successful login.
 
boost::uuids::uuid account_id
 Foreign key referencing the associated account.
 
int failed_logins = 0
 Count of consecutive failed login attempts since last successful login.
 
bool locked = false
 Flag indicating whether the account is locked due to security concerns.
 
bool online = false
 Flag indicating whether the user is currently logged in.
 
bool password_reset_required = false
 Flag indicating whether the user must change their password on next login.
 
boost::asio::ip::address last_ip
 IP address from the last successful login.
 
boost::asio::ip::address last_attempt_ip
 IP address from the most recent login attempt (successful or failed).
 

Detailed Description

Represents login tracking and security information for an account.

Member Data Documentation

◆ password_reset_required

bool password_reset_required = false

Flag indicating whether the user must change their password on next login.

Set by an admin when resetting a user's password. Cleared after the user successfully sets a new password.