SetEmail sets the user's email
(tx *storage.Connection, email string)
| 316 | |
| 317 | // SetEmail sets the user's email |
| 318 | func (u *User) SetEmail(tx *storage.Connection, email string) error { |
| 319 | u.Email = storage.NullString(email) |
| 320 | return tx.UpdateOnly(u, "email") |
| 321 | } |
| 322 | |
| 323 | // SetPhone sets the user's phone |
| 324 | func (u *User) SetPhone(tx *storage.Connection, phone string) error { |