small fixes
This commit is contained in:
@@ -77,7 +77,6 @@ type JoinRequest struct {
|
||||
|
||||
// LoginRequest - это тело запроса на /api/login
|
||||
type LoginRequest struct {
|
||||
// Позволяем логиниться как по username, так и по email
|
||||
Login string `json:"login"`
|
||||
Password string `json:"password"`
|
||||
}
|
||||
@@ -85,5 +84,5 @@ type LoginRequest struct {
|
||||
// LoginResponse - это тело успешного ответа с JWT
|
||||
type LoginResponse struct {
|
||||
Token string `json:"token"`
|
||||
User *User `json:"user"` // Отдаем информацию о пользователе
|
||||
User *User `json:"user"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user