Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// UserManager.js
(function () {
  /*global adventurejs A*/
  "use strict";

  /**
   * Explanation of the class.
   * @class adventurejs.UserManager
   * @ajsnavheading FrameworkReference
   * @param {Game} game A reference to the game instance.
   * @summary Interface for a user account logged in to adventurejs.com.
   * @todo Everything.
   * @classdesc
   * <p>
   * <strong>UserManager</strong> is a (placeholder for a)
   * special class to be constructed by
   * {@link adventurejs.Game|Game},
   * and used to interface with the user account
   * that is logged in to
   * <a href="https://adventurejs.com">adventurejs.com</a>
   * </p>
   */
  class UserManager {
    constructor(game) {
      this.game = game;

      // login tutorial at tutorialrepublic
      // https://www.tutorialrepublic.com/php-tutorial/php-mysql-login-system.php

      // https://stackoverflow.com/questions/1054022/best-way-to-store-password-in-database
      // https://stackoverflow.com/questions/947618/how-to-best-store-user-information-and-user-login-and-password
      // https://stackoverflow.com/questions/258299/what-is-the-best-way-to-keep-passwords-configurable-without-having-them-too-eas
      // https://stackoverflow.com/questions/674904/salting-your-password-best-practices
    }
  }
  adventurejs.UserManager = UserManager;
})();