chore: extract mail to it's own service #181
Some checks failed
Build Docker Image / Explore-Gitea-Actions (push) Has been cancelled
Some checks failed
Build Docker Image / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
@@ -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, "InternalServerErr", http.StatusInternalServerError)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
11
handler/auth_test.go
Normal file
11
handler/auth_test.go
Normal 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) {
|
||||||
|
})
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user