This commit is contained in:
木木的木头 authored and jinnrry committed 2023-09-08 02:11:00 +08:00
1 parent 5603f26ed6
commit f4689d073c
72 files changed
+1914 -2860

No files matched your search

+2 -2
View File
@@ -7,11 +7,11 @@ import (
"io"
"net/http"
"pmail/db"
"pmail/dto"
"pmail/dto/response"
"pmail/i18n"
"pmail/models"
"pmail/session"
"pmail/utils/context"
"pmail/utils/password"
)
@@ -20,7 +20,7 @@ type loginRequest struct {
Password string `json:"password"`
}
func Login(ctx *dto.Context, w http.ResponseWriter, req *http.Request) {
func Login(ctx *context.Context, w http.ResponseWriter, req *http.Request) {
reqBytes, err := io.ReadAll(req.Body)
if err != nil {