chore: extract mail to it's own service #181
Some checks failed
Build Docker Image / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
2024-09-27 23:21:37 +02:00
parent a70138f2f7
commit 55c5caa1b8
2 changed files with 12 additions and 1 deletions

View File

@@ -76,7 +76,7 @@ func (handler HandlerAuthImpl) handleSignIn() http.HandlerFunc {
http.Error(w, "Invalid email or password", http.StatusUnauthorized) http.Error(w, "Invalid email or password", http.StatusUnauthorized)
} else { } else {
utils.LogError("Error signing in", err) utils.LogError("Error signing in", err)
http.Error(w, "An error occurred", http.StatusInternalServerError) http.Error(w, "An error occured", http.StatusInternalServerError)
} }
return return
} }

11
handler/auth_test.go Normal file
View File

@@ -0,0 +1,11 @@
package handler
import (
"testing"
)
func TestHandleSignIn(t *testing.T) {
t.Parallel()
t.Run("should signIn and return session cookie", func(t *testing.T) {
})
}