Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

rename

Blue Mouse726b6d243710
diff --git a/backend/apps/cloud/src/auth/auth.service.ts b/backend/apps/cloud/src/auth/auth.service.ts
index 1be8ee77a..5305f6e07 100644
--- a/backend/apps/cloud/src/auth/auth.service.ts
+++ b/backend/apps/cloud/src/auth/auth.service.ts
@@ -95,8 +95,8 @@ export class AuthService {
})
}
- public async checkIfLeaked(password: string): Promise<boolean> {
- const sha1Hash = await this.createSha1Hash(password)
+ public async checkIfLeaked(potentialPassword: string): Promise<boolean> {
+ const sha1Hash = await this.createSha1Hash(potentialPassword)
const firstFiveChars = sha1Hash.slice(0, 5)
const lastChars = sha1Hash.slice(5)
diff --git a/backend/apps/community/src/auth/auth.service.ts b/backend/apps/community/src/auth/auth.service.ts
index 5fab26454..5aa4bf487 100644
--- a/backend/apps/community/src/auth/auth.service.ts
+++ b/backend/apps/community/src/auth/auth.service.ts
@@ -57,8 +57,8 @@ export class AuthService {
})
}
- public async checkIfLeaked(password: string): Promise<boolean> {
- const sha1Hash = await this.createSha1Hash(password)
+ public async checkIfLeaked(potentialPassword: string): Promise<boolean> {
+ const sha1Hash = await this.createSha1Hash(potentialPassword)
const firstFiveChars = sha1Hash.slice(0, 5)
const lastChars = sha1Hash.slice(5)