MCPcopy Index your code
hub / github.com/coder/code-server / isHashLegacyMatch

Function isHashLegacyMatch

src/node/util.ts:172–175  ·  view source on GitHub ↗
(password: string, hashPassword: string)

Source from the content-addressed store, hash-verified

170 * the hashLegacy function
171 */
172export const isHashLegacyMatch = (password: string, hashPassword: string) => {
173 const hashedWithLegacy = hashLegacy(password)
174 return safeCompare(hashedWithLegacy, hashPassword)
175}
176
177export type PasswordMethod = "SHA256" | "ARGON2" | "PLAIN_TEXT"
178

Callers 1

handlePasswordValidationFunction · 0.85

Calls 1

hashLegacyFunction · 0.85

Tested by

no test coverage detected