Small improvements
This commit is contained in:
@@ -27,14 +27,6 @@ type Claims struct {
|
||||
}
|
||||
|
||||
func HandleLogin(w http.ResponseWriter, r *http.Request) {
|
||||
// if r.Method != http.MethodPost {
|
||||
// core.JSONError{
|
||||
// Status: core.Error,
|
||||
// Message: "Method is not allowed",
|
||||
// }.Respond(w, http.StatusMethodNotAllowed)
|
||||
// return
|
||||
// }
|
||||
|
||||
if r.Body == nil {
|
||||
core.JSONError{
|
||||
Status: core.Error,
|
||||
|
||||
Reference in New Issue
Block a user