Add user credentials backup feature

This commit is contained in:
blankhex committed 2026-10-24 18:50:25 +03:00
1 parent db6a333029
commit ef2667e71e
9 files changed
+261 -3

No files matched your search

+6 -1
View File
@@ -21,10 +21,15 @@ const (
type Service struct {
r *Repository
v *Validator
}
func NewService(r *Repository) (*Service, error) {
return &Service{r: r}, nil
validator, err := NewValidator()
if err != nil {
return nil, err
}
return &Service{r: r, v: validator}, nil
}
func (s *Service) hashPassword(password string) (string, error) {