This commit is contained in:
Overtorment
2018-12-03 14:44:09 +00:00
parent e72fcb3b0f
commit cb452d6abd
2 changed files with 11 additions and 11 deletions

View File

@@ -56,13 +56,13 @@ export class User {
}
async create() {
let buffer = crypto.randomBytes(20);
let buffer = crypto.randomBytes(10);
let login = buffer.toString('hex');
buffer = crypto.randomBytes(20);
buffer = crypto.randomBytes(10);
let password = buffer.toString('hex');
buffer = crypto.randomBytes(48);
buffer = crypto.randomBytes(24);
let userid = buffer.toString('hex');
this._login = login;
this._password = password;