Add authentication, styling needs to be fixed
# Conflicts: # starter/ent/runtime.go # starter/go.mod # starter/go.sum # starter/routes/routing.go
This commit is contained in:
@@ -20,7 +20,9 @@ func (User) Mixin() []ent.Mixin {
|
||||
func (User) Fields() []ent.Field {
|
||||
return []ent.Field{
|
||||
field.String("email").
|
||||
Default("unknown@localhost"),
|
||||
field.String("password").Default(""),
|
||||
Unique(),
|
||||
field.String("password_hash").
|
||||
Default("").
|
||||
Sensitive(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user