Add user credentials backup feature
This commit is contained in:
1 parent
db6a333029
commit
ef2667e71e
9 files changed
+261
-3
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user