summaryrefslogtreecommitdiff
path: root/src/account-server/accountclient.hpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2009-01-12 12:25:42 +0000
committerDavid Athay <ko2fan@gmail.com>2009-01-12 12:25:42 +0000
commitd1b73b1195f8e8b2ad64ff692e7ddb17ed0bbad1 (patch)
tree3cfb22ab8b13fc47284f808d5da37ec2fa97d6a1 /src/account-server/accountclient.hpp
parent83ecbeff8d09b212cddc33b1879a63002fad46c0 (diff)
downloadmanaserv-d1b73b1195f8e8b2ad64ff692e7ddb17ed0bbad1.tar.gz
manaserv-d1b73b1195f8e8b2ad64ff692e7ddb17ed0bbad1.tar.bz2
manaserv-d1b73b1195f8e8b2ad64ff692e7ddb17ed0bbad1.tar.xz
manaserv-d1b73b1195f8e8b2ad64ff692e7ddb17ed0bbad1.zip
Added getting IP, and restricting time between logins
Diffstat (limited to 'src/account-server/accountclient.hpp')
-rw-r--r--src/account-server/accountclient.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/account-server/accountclient.hpp b/src/account-server/accountclient.hpp
index b0bb0c3f..600ec2db 100644
--- a/src/account-server/accountclient.hpp
+++ b/src/account-server/accountclient.hpp
@@ -69,11 +69,23 @@ class AccountClient : public NetComputer
Account *getAccount() const
{ return mAccount; }
+ /**
+ * Update lastLoginAttempt
+ */
+ void updateLoginAttempt();
+
+ /**
+ * Returns the time of the last login attempt.
+ */
+ int getLastLoginAttempt() const
+ { return lastLoginAttempt; }
+
int status;
private:
/** Account associated with connection */
Account *mAccount;
+ time_t lastLoginAttempt;
};
#endif