From 8f2180401fd05ba63633d9559dc156f5ca1573ba Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 9 Sep 2023 10:20:31 +0530 Subject: logging in with either username or email --- auth/auth.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'auth/auth.go') diff --git a/auth/auth.go b/auth/auth.go index 6797c91..ae2db9b 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -25,3 +25,9 @@ type AuthClaims struct { jwt.RegisteredClaims UserID uint `json:"userid"` } + +type LoginReq struct { + AccountName string + Method string + Password string +} -- cgit v1.2.3