aboutsummaryrefslogtreecommitdiff
path: root/auth/auth.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-09 10:20:31 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-09 10:20:31 +0530
commit8f2180401fd05ba63633d9559dc156f5ca1573ba (patch)
treef3d2f59b04d5940bc5028904d6ce9d551aace86a /auth/auth.go
parentcba9f19ba50c60576a5961e89c24caefca52d740 (diff)
logging in with either username or emailv0.0.6
Diffstat (limited to 'auth/auth.go')
-rw-r--r--auth/auth.go6
1 files changed, 6 insertions, 0 deletions
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
+}