From 5baa00aafb16a4c6ed1d77913edddd090f732dad Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Mon, 1 May 2023 14:07:28 +0330 Subject: [PATCH] feat(crypto): make prefix for userId --- core/crypto/src/user.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/crypto/src/user.ts b/core/crypto/src/user.ts index 254bdb1d7..0dee5808e 100644 --- a/core/crypto/src/user.ts +++ b/core/crypto/src/user.ts @@ -31,7 +31,7 @@ export class AlwatrUserFactory { * ``` */ generateId(): string { - return this._hashGenerator.randomSelfValidate(); + return 'U' + this._hashGenerator.randomSelfValidate(); } /** @@ -46,7 +46,7 @@ export class AlwatrUserFactory { * ``` */ verifyId(id: string): boolean { - return this._hashGenerator.verifySelfValidate(id); + return this._hashGenerator.verifySelfValidate(id.substring(1)); } /**