完善配置审计与数据库迁移安全链路
This commit is contained in:
1 parent
84440d8761
commit
3af1fc4147
117 files changed
+4703
-1110
No files matched your search
@@ -284,7 +284,7 @@ func (s *Service) CompleteWithContext(ticketID, newPassword, browserContext stri
|
||||
if s == nil || s.engine == nil || s.credentials == nil || strings.TrimSpace(ticketID) == "" {
|
||||
return ErrInvalidRequest
|
||||
}
|
||||
if len([]byte(newPassword)) < 8 || len([]byte(newPassword)) > 256 {
|
||||
if password.ValidateUserPassword(newPassword) != nil {
|
||||
return ErrInvalidNewPassword
|
||||
}
|
||||
s.mu.Lock()
|
||||
|
||||
Reference in new issue
Block a user