redo main/register page

This commit is contained in:
SowinskiBraeden committed 2022-04-13 13:12:19 -07:00
1 parent eaa2febbf2
commit 1ad5eb654b
400 files changed
+93168 -323

No files matched your search

-15
View File
@@ -1,15 +0,0 @@
package models
import (
"time"
"go.mongodb.org/mongo-driver/bson/primitive"
)
type Photo struct {
ID primitive.ObjectID `bson:"_id"`
Name string `json:"name" validate:"required"`
Base64 string `json:"base64" validate:"required"`
Created_at time.Time `json:"created_at"`
Updated_at time.Time `json:"updated_at"`
}
+3 -2
View File
@@ -19,12 +19,13 @@ var (
type User struct {
ID primitive.ObjectID `bson:"_id"`
Firstname string `json:"firstname"`
Lastname string `json:"lastname"`
Username string `json:"username" validate:"required"`
Email string `json:"email" validate:"required"`
Password string `json:"-" validate:"min=10,max=32"`
TempPassword bool `json:"temppassword"`
AccountType string `json:"accounttype"`
PhotoName string `json:"photoname"` // name of photo in db
Subscription string `json:"subscription"` // standard, professional, business
Created_at time.Time `json:"created_at"`
Updated_at time.Time `json:"updated_at"`
}