magicrealmsshared 0.3.11 → 0.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,7 +26,8 @@ export type Auth_Token = {
26
26
  };
27
27
  export type Player<T> = ObjectWithId<T> & {
28
28
  email: string;
29
- password: string;
29
+ passwordHash: string;
30
+ passwordSalt: string;
30
31
  registerTime: Date;
31
32
  loginTime: Date;
32
33
  interactTime: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magicrealmsshared",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -38,7 +38,8 @@ export type Auth_Token = {
38
38
 
39
39
  export type Player<T> = ObjectWithId<T> & {
40
40
  email: string,
41
- password: string,
41
+ passwordHash: string,
42
+ passwordSalt:string,
42
43
  registerTime: Date,
43
44
  loginTime: Date,
44
45
  interactTime: Date,
@@ -1 +0,0 @@
1
- export declare function passwordSalted(username: string, password: string, salt: string, sha256: (input: string) => (Promise<string> | string)): Promise<string>;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.passwordSalted = passwordSalted;
4
- const salt1 = 'c<MS$gk:^8r[K`;6b!x#a@';
5
- const salt2 = 'r@k-6>}3mJhgX72Y{,HV!:';
6
- async function passwordSalted(username, password, salt, sha256) {
7
- return sha256(salt1 + username + salt + password + salt2);
8
- }