From 73d7fe9411f4a9a0b849d9b42051e67ca19c25ec Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 5 Apr 2024 19:09:07 +0530 Subject: validating username upon account creation --- user/user.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'user/user.go') 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 + * Copyright (C) 2023-2024 Vidhu Kant Sharma * * 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 } -- cgit v1.2.3