修正安全码验证后重新查看的提示与注释
This commit is contained in:
1 parent
0cbc67a5e2
commit
645c3444b7
7 files changed
+9
-8
No files matched your search
@@ -143,7 +143,7 @@ func (s *Service) VerifySecurityQuestion(userID int, answer string) (bool, error
|
||||
return password.Check(item.AnswerHash, answer)
|
||||
}
|
||||
|
||||
// GenerateRecoveryCodes 撤销旧码并生成一组只返回一次的离线恢复码。
|
||||
// GenerateRecoveryCodes 撤销旧码并生成一组离线恢复码,保存哈希和受保护的密文以支持安全验证后再次查看。
|
||||
func (s *Service) GenerateRecoveryCodes(userID int, count int) ([]string, error) {
|
||||
return s.GenerateRecoveryCodesContext(context.Background(), userID, count)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user