humble beginnings (frontend edition)

This commit is contained in:
wisplite
2025-08-27 02:59:44 -05:00
parent 362d61eb48
commit 2ec1b06716
15 changed files with 3537 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@ type User struct {
Username string `gorm:"not null"`
Password string `gorm:"not null"`
IsAdmin bool `gorm:"not null"`
IsActive bool `gorm:"not null"`
CreatedAt time.Time
UpdatedAt time.Time
}
+1
View File
@@ -18,6 +18,7 @@ func CreateUser(username string, password string) error {
Username: username,
Password: string(hashedPassword),
IsAdmin: false,
IsActive: false,
}
result := db.GetDB().Create(&user)
if result.Error != nil {