feat: use only one salt arg in CredManager.IsPasswordCorrect() (#3936)

This commit is contained in:
raiki02
2025-07-07 17:56:25 +08:00
committed by GitHub
parent b42391c6ce
commit 9bbe5afb7c
10 changed files with 15 additions and 27 deletions

View File

@@ -31,7 +31,7 @@ func (cm *Argon2idCredManager) GetHashedPassword(password string, salt string) s
return hash
}
func (cm *Argon2idCredManager) IsPasswordCorrect(plainPwd string, hashedPwd string, userSalt string, organizationSalt string) bool {
func (cm *Argon2idCredManager) IsPasswordCorrect(plainPwd string, hashedPwd string, salt string) bool {
match, _ := argon2id.ComparePasswordAndHash(plainPwd, hashedPwd)
return match
}