Skip to content

Commit

Permalink
fix: hashPassword
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohaodu committed May 21, 2024
1 parent 9de53fe commit 97dd9b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/web-chat-x-vue/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,9 @@ export function getPeerIdFromUserId(userId: string): string {
/**
* 异步函数,计算并返回密码的SHA-256哈希值。
*/
export async function hashPassword(password: string): Promise<string> {
return await getKeyHash(password);
export async function hashPassword(_password: string): Promise<string> {
return "";
// return await getKeyHash(password);
}
/**
* 生成或设置标识符(PeerId、混淆代码、用户ID)的方法。
Expand Down

0 comments on commit 97dd9b4

Please sign in to comment.