diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2024-04-05 19:09:07 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2024-04-05 19:09:07 +0530 |
commit | 73d7fe9411f4a9a0b849d9b42051e67ca19c25ec (patch) | |
tree | 91035198021ade4b1ec98012d9799827e9d9711c /user/user.go | |
parent | 10aed3cea7935f2f22ef713cff9839dd16afce48 (diff) |
validating username upon account creationv0.5.0
Diffstat (limited to 'user/user.go')
-rw-r--r-- | user/user.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/user/user.go b/user/user.go index ee36e95..401ebe7 100644 --- a/user/user.go +++ b/user/user.go @@ -1,5 +1,5 @@ /* openbills - Server for web based Libre Billing Software - * Copyright (C) 2023 Vidhu Kant Sharma <vidhukant@vidhukant.com> + * Copyright (C) 2023-2024 Vidhu Kant Sharma <vidhukant@vidhukant.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,6 +20,7 @@ package user import ( d "vidhukant.com/openbills/db" e "vidhukant.com/openbills/errors" + u "vidhukant.com/openbills/util" "golang.org/x/crypto/bcrypt" "gorm.io/gorm" "github.com/spf13/viper" @@ -38,8 +39,13 @@ func init() { type User struct { gorm.Model + u.Address + FullName string + Gstin string + Phone string + Email string + Website string Username string - Email string Password string IsVerified bool } |