working on auth.
mailer, basic setup with html template and a dev treansport
This commit is contained in:
@@ -78,6 +78,12 @@ func (uu *UserUpdate) SetNillablePhone(s *string) *UserUpdate {
|
||||
return uu
|
||||
}
|
||||
|
||||
// ClearPhone clears the value of the "phone" field.
|
||||
func (uu *UserUpdate) ClearPhone() *UserUpdate {
|
||||
uu.mutation.ClearPhone()
|
||||
return uu
|
||||
}
|
||||
|
||||
// SetPhoneVerified sets the "phone_verified" field.
|
||||
func (uu *UserUpdate) SetPhoneVerified(b bool) *UserUpdate {
|
||||
uu.mutation.SetPhoneVerified(b)
|
||||
@@ -425,6 +431,9 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) {
|
||||
if value, ok := uu.mutation.Phone(); ok {
|
||||
_spec.SetField(user.FieldPhone, field.TypeString, value)
|
||||
}
|
||||
if uu.mutation.PhoneCleared() {
|
||||
_spec.ClearField(user.FieldPhone, field.TypeString)
|
||||
}
|
||||
if value, ok := uu.mutation.PhoneVerified(); ok {
|
||||
_spec.SetField(user.FieldPhoneVerified, field.TypeBool, value)
|
||||
}
|
||||
@@ -625,6 +634,12 @@ func (uuo *UserUpdateOne) SetNillablePhone(s *string) *UserUpdateOne {
|
||||
return uuo
|
||||
}
|
||||
|
||||
// ClearPhone clears the value of the "phone" field.
|
||||
func (uuo *UserUpdateOne) ClearPhone() *UserUpdateOne {
|
||||
uuo.mutation.ClearPhone()
|
||||
return uuo
|
||||
}
|
||||
|
||||
// SetPhoneVerified sets the "phone_verified" field.
|
||||
func (uuo *UserUpdateOne) SetPhoneVerified(b bool) *UserUpdateOne {
|
||||
uuo.mutation.SetPhoneVerified(b)
|
||||
@@ -1002,6 +1017,9 @@ func (uuo *UserUpdateOne) sqlSave(ctx context.Context) (_node *User, err error)
|
||||
if value, ok := uuo.mutation.Phone(); ok {
|
||||
_spec.SetField(user.FieldPhone, field.TypeString, value)
|
||||
}
|
||||
if uuo.mutation.PhoneCleared() {
|
||||
_spec.ClearField(user.FieldPhone, field.TypeString)
|
||||
}
|
||||
if value, ok := uuo.mutation.PhoneVerified(); ok {
|
||||
_spec.SetField(user.FieldPhoneVerified, field.TypeBool, value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user