From 340fdb9d444d626fdf91f49327b357ab20440fb1 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Mon, 12 Aug 2024 13:42:38 +0500 Subject: [PATCH] last commit --- api/src/auth/Login.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/auth/Login.go b/api/src/auth/Login.go index 370cfe8..d1964e8 100644 --- a/api/src/auth/Login.go +++ b/api/src/auth/Login.go @@ -48,9 +48,10 @@ func Login(w http.ResponseWriter, r *http.Request) { Value: tokenString, Expires: expirationtime, }) + w.WriteHeader(http.StatusOK) } func checkPasswordHash(password, hash string) bool { err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(password)) return err == nil -} +} \ No newline at end of file