Skip to content

Commit

Permalink
feat(crypto): make prefix for userId
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd authored and njfamirm committed May 1, 2023
1 parent f9e68bf commit 5baa00a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/crypto/src/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class AlwatrUserFactory {
* ```
*/
generateId(): string {
return this._hashGenerator.randomSelfValidate();
return 'U' + this._hashGenerator.randomSelfValidate();
}

/**
Expand All @@ -46,7 +46,7 @@ export class AlwatrUserFactory {
* ```
*/
verifyId(id: string): boolean {
return this._hashGenerator.verifySelfValidate(id);
return this._hashGenerator.verifySelfValidate(id.substring(1));
}

/**
Expand Down

0 comments on commit 5baa00a

Please sign in to comment.