aboutsummaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-10 23:06:48 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-10 23:06:48 +0530
commita0613bfd790b27f313470bddc08371bcbf54968d (patch)
treeb7be2848305ca84c3e4f9b62a34124b7a84e780c /user
parentc06a671dc4fe213c0e9f10a99d3c6d82396e91e1 (diff)
actually hashing and comparing passwords (not empty strings)v0.0.9
Diffstat (limited to 'user')
-rw-r--r--user/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/user/user.go b/user/user.go
index 132acb6..ee36e95 100644
--- a/user/user.go
+++ b/user/user.go
@@ -40,7 +40,7 @@ type User struct {
gorm.Model
Username string
Email string
- Password string `json:"-"`
+ Password string
IsVerified bool
}