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:
+43
-43
@@ -3,10 +3,10 @@
|
||||
package user
|
||||
|
||||
import (
|
||||
"git.gorlug.de/code/ersteller/starter/ent/predicate"
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"git.gorlug.de/code/ersteller/starter/ent/predicate"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
@@ -69,9 +69,9 @@ func Email(v string) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldEmail, v))
|
||||
}
|
||||
|
||||
// Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
|
||||
func Password(v string) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldPassword, v))
|
||||
// PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.
|
||||
func PasswordHash(v string) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldPasswordHash, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
@@ -219,69 +219,69 @@ func EmailContainsFold(v string) predicate.User {
|
||||
return predicate.User(sql.FieldContainsFold(FieldEmail, v))
|
||||
}
|
||||
|
||||
// PasswordEQ applies the EQ predicate on the "password" field.
|
||||
func PasswordEQ(v string) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldPassword, v))
|
||||
// PasswordHashEQ applies the EQ predicate on the "password_hash" field.
|
||||
func PasswordHashEQ(v string) predicate.User {
|
||||
return predicate.User(sql.FieldEQ(FieldPasswordHash, v))
|
||||
}
|
||||
|
||||
// PasswordNEQ applies the NEQ predicate on the "password" field.
|
||||
func PasswordNEQ(v string) predicate.User {
|
||||
return predicate.User(sql.FieldNEQ(FieldPassword, v))
|
||||
// PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.
|
||||
func PasswordHashNEQ(v string) predicate.User {
|
||||
return predicate.User(sql.FieldNEQ(FieldPasswordHash, v))
|
||||
}
|
||||
|
||||
// PasswordIn applies the In predicate on the "password" field.
|
||||
func PasswordIn(vs ...string) predicate.User {
|
||||
return predicate.User(sql.FieldIn(FieldPassword, vs...))
|
||||
// PasswordHashIn applies the In predicate on the "password_hash" field.
|
||||
func PasswordHashIn(vs ...string) predicate.User {
|
||||
return predicate.User(sql.FieldIn(FieldPasswordHash, vs...))
|
||||
}
|
||||
|
||||
// PasswordNotIn applies the NotIn predicate on the "password" field.
|
||||
func PasswordNotIn(vs ...string) predicate.User {
|
||||
return predicate.User(sql.FieldNotIn(FieldPassword, vs...))
|
||||
// PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.
|
||||
func PasswordHashNotIn(vs ...string) predicate.User {
|
||||
return predicate.User(sql.FieldNotIn(FieldPasswordHash, vs...))
|
||||
}
|
||||
|
||||
// PasswordGT applies the GT predicate on the "password" field.
|
||||
func PasswordGT(v string) predicate.User {
|
||||
return predicate.User(sql.FieldGT(FieldPassword, v))
|
||||
// PasswordHashGT applies the GT predicate on the "password_hash" field.
|
||||
func PasswordHashGT(v string) predicate.User {
|
||||
return predicate.User(sql.FieldGT(FieldPasswordHash, v))
|
||||
}
|
||||
|
||||
// PasswordGTE applies the GTE predicate on the "password" field.
|
||||
func PasswordGTE(v string) predicate.User {
|
||||
return predicate.User(sql.FieldGTE(FieldPassword, v))
|
||||
// PasswordHashGTE applies the GTE predicate on the "password_hash" field.
|
||||
func PasswordHashGTE(v string) predicate.User {
|
||||
return predicate.User(sql.FieldGTE(FieldPasswordHash, v))
|
||||
}
|
||||
|
||||
// PasswordLT applies the LT predicate on the "password" field.
|
||||
func PasswordLT(v string) predicate.User {
|
||||
return predicate.User(sql.FieldLT(FieldPassword, v))
|
||||
// PasswordHashLT applies the LT predicate on the "password_hash" field.
|
||||
func PasswordHashLT(v string) predicate.User {
|
||||
return predicate.User(sql.FieldLT(FieldPasswordHash, v))
|
||||
}
|
||||
|
||||
// PasswordLTE applies the LTE predicate on the "password" field.
|
||||
func PasswordLTE(v string) predicate.User {
|
||||
return predicate.User(sql.FieldLTE(FieldPassword, v))
|
||||
// PasswordHashLTE applies the LTE predicate on the "password_hash" field.
|
||||
func PasswordHashLTE(v string) predicate.User {
|
||||
return predicate.User(sql.FieldLTE(FieldPasswordHash, v))
|
||||
}
|
||||
|
||||
// PasswordContains applies the Contains predicate on the "password" field.
|
||||
func PasswordContains(v string) predicate.User {
|
||||
return predicate.User(sql.FieldContains(FieldPassword, v))
|
||||
// PasswordHashContains applies the Contains predicate on the "password_hash" field.
|
||||
func PasswordHashContains(v string) predicate.User {
|
||||
return predicate.User(sql.FieldContains(FieldPasswordHash, v))
|
||||
}
|
||||
|
||||
// PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
|
||||
func PasswordHasPrefix(v string) predicate.User {
|
||||
return predicate.User(sql.FieldHasPrefix(FieldPassword, v))
|
||||
// PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.
|
||||
func PasswordHashHasPrefix(v string) predicate.User {
|
||||
return predicate.User(sql.FieldHasPrefix(FieldPasswordHash, v))
|
||||
}
|
||||
|
||||
// PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
|
||||
func PasswordHasSuffix(v string) predicate.User {
|
||||
return predicate.User(sql.FieldHasSuffix(FieldPassword, v))
|
||||
// PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.
|
||||
func PasswordHashHasSuffix(v string) predicate.User {
|
||||
return predicate.User(sql.FieldHasSuffix(FieldPasswordHash, v))
|
||||
}
|
||||
|
||||
// PasswordEqualFold applies the EqualFold predicate on the "password" field.
|
||||
func PasswordEqualFold(v string) predicate.User {
|
||||
return predicate.User(sql.FieldEqualFold(FieldPassword, v))
|
||||
// PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.
|
||||
func PasswordHashEqualFold(v string) predicate.User {
|
||||
return predicate.User(sql.FieldEqualFold(FieldPasswordHash, v))
|
||||
}
|
||||
|
||||
// PasswordContainsFold applies the ContainsFold predicate on the "password" field.
|
||||
func PasswordContainsFold(v string) predicate.User {
|
||||
return predicate.User(sql.FieldContainsFold(FieldPassword, v))
|
||||
// PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.
|
||||
func PasswordHashContainsFold(v string) predicate.User {
|
||||
return predicate.User(sql.FieldContainsFold(FieldPasswordHash, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
|
||||
Reference in New Issue
Block a user