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:
@@ -3,11 +3,12 @@
|
||||
package ent
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"git.gorlug.de/code/ersteller/starter/ent/googleauth"
|
||||
"git.gorlug.de/code/ersteller/starter/ent/schema"
|
||||
"git.gorlug.de/code/ersteller/starter/ent/todo"
|
||||
"git.gorlug.de/code/ersteller/starter/ent/user"
|
||||
"time"
|
||||
)
|
||||
|
||||
// The init function reads all schema descriptors with runtime code
|
||||
@@ -67,12 +68,8 @@ func init() {
|
||||
user.DefaultUpdatedAt = userDescUpdatedAt.Default.(func() time.Time)
|
||||
// user.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
|
||||
user.UpdateDefaultUpdatedAt = userDescUpdatedAt.UpdateDefault.(func() time.Time)
|
||||
// userDescEmail is the schema descriptor for email field.
|
||||
userDescEmail := userFields[0].Descriptor()
|
||||
// user.DefaultEmail holds the default value on creation for the email field.
|
||||
user.DefaultEmail = userDescEmail.Default.(string)
|
||||
// userDescPassword is the schema descriptor for password field.
|
||||
userDescPassword := userFields[1].Descriptor()
|
||||
// user.DefaultPassword holds the default value on creation for the password field.
|
||||
user.DefaultPassword = userDescPassword.Default.(string)
|
||||
// userDescPasswordHash is the schema descriptor for password_hash field.
|
||||
userDescPasswordHash := userFields[1].Descriptor()
|
||||
// user.DefaultPasswordHash holds the default value on creation for the password_hash field.
|
||||
user.DefaultPasswordHash = userDescPasswordHash.Default.(string)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user