code: function (password, algorithm, salt) {
  
              return {
                  hash: this.createHash(password, algorithm, salt),
                  loginAttempts: 0,
                  loginBlocked: null
              }
  
          }
docs: Creates an authentication Object which contains all authentication relevant data for an user
  @param password
  @param algorithm
  @param salt
  @returns {{encryptedPassword: *, loginAttempts: number, loginBlocked: null}}