chore: remove db dependency from handler
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 47s

This commit is contained in:
2024-09-27 11:17:09 +02:00
parent 3be6fa36d5
commit 93baa9d740
2 changed files with 18 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
package handler
import (
"me-fit/db"
"me-fit/service"
"me-fit/utils"
"time"
@@ -51,7 +50,7 @@ var (
func (handler HandlerAuthImpl) handleSignIn() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
user, err := utils.WaitMinimumTime(securityWaitDuration, func() (*db.User, error) {
user, err := utils.WaitMinimumTime(securityWaitDuration, func() (*service.User, error) {
var email = r.FormValue("email")
var password = r.FormValue("password")