SetPhone sets the user's phone
(tx *storage.Connection, phone string)
| 322 | |
| 323 | // SetPhone sets the user's phone |
| 324 | func (u *User) SetPhone(tx *storage.Connection, phone string) error { |
| 325 | u.Phone = storage.NullString(phone) |
| 326 | return tx.UpdateOnly(u, "phone") |
| 327 | } |
| 328 | |
| 329 | func (u *User) SetPassword(ctx context.Context, password string, encrypt bool, encryptionKeyID, encryptionKey string) error { |
| 330 | if password == "" { |