fix
This commit is contained in:
@@ -81,6 +81,9 @@ func TestPasswordHash(t *testing.T) {
|
||||
if PasswordVerify("wrongpassword", hash) {
|
||||
t.Errorf("PasswordVerify() 应该验证失败,但验证成功了")
|
||||
}
|
||||
|
||||
// 输出加密后的密码,便于人工检查
|
||||
t.Logf("原始密码: %s, 加密后: %s", tc.password, hash)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user