stuff
This commit is contained in:
@@ -25,6 +25,21 @@ export class Player {
|
||||
return this._passwordHash;
|
||||
}
|
||||
|
||||
/** @type {Date} */
|
||||
_createdAt = new Date();
|
||||
|
||||
/** @type {Date|null} Date of the player's last websocket message. */
|
||||
lastActivityAt = null;
|
||||
|
||||
/** @type {Date|null} Date of the player's last login. */
|
||||
lastSucessfulLoginAt = null;
|
||||
|
||||
/** @type {number} Number of successful logins on this character */
|
||||
successfulLogins = 0;
|
||||
|
||||
/** @type {number} Number of failed login attempts since the last good login attempt */
|
||||
failedPasswordsSinceLastLogin = 0;
|
||||
|
||||
/** @protected @type {Set<Character>} */
|
||||
_characters = new Set();
|
||||
get characters() {
|
||||
@@ -39,7 +54,7 @@ export class Player {
|
||||
this._username = username;
|
||||
this._passwordHash = passwordHash;
|
||||
|
||||
this.createdAt = new Date();
|
||||
this._createdAt = new Date();
|
||||
}
|
||||
|
||||
setPasswordHash(hashedPassword) {
|
||||
|
||||
Reference in New Issue
Block a user