diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-06-25 19:09:54 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-06-25 19:51:55 +0200 |
commit | 249ee195ce52ee4a4defeb67a33ef353919d3a11 (patch) | |
tree | 24ffcfa3a852b0464fc0344cfc79bc5efb272a3e /pkg/components/auth/controller.go | |
parent | 91d413b3a15a15fd8b710d8f5a1532d2e3de6f05 (diff) | |
download | lens-249ee195ce52ee4a4defeb67a33ef353919d3a11.tar.gz lens-249ee195ce52ee4a4defeb67a33ef353919d3a11.tar.bz2 lens-249ee195ce52ee4a4defeb67a33ef353919d3a11.zip |
feat: Add user list UI
Fill user settings UI with actual data.
Diffstat (limited to 'pkg/components/auth/controller.go')
-rw-r--r-- | pkg/components/auth/controller.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/pkg/components/auth/controller.go b/pkg/components/auth/controller.go index 4da6071..a81a1c0 100644 --- a/pkg/components/auth/controller.go +++ b/pkg/components/auth/controller.go @@ -41,17 +41,3 @@ func (c *Controller) Login(ctx context.Context, username, password []byte) ([]by } return ext.WriteToken(token, c.key) } - -func (c *Controller) Register(ctx context.Context, username, password []byte) error { - hash, err := bcrypt.GenerateFromPassword(password, bcrypt.MinCost) - if err != nil { - return err - } - - _, err = c.repository.Create(ctx, &CreateUser{ - Username: string(username), - Password: hash, - }) - - return err -} |