(tx *storage.Connection, email string)
| 181 | } |
| 182 | |
| 183 | func (u *User) SetEmail(tx *storage.Connection, email string) error { |
| 184 | u.Email = email |
| 185 | return tx.UpdateOnly(u, "email") |
| 186 | } |
| 187 | |
| 188 | // hashPassword generates a hashed password from a plaintext string |
| 189 | func hashPassword(password string) (string, error) { |
no test coverage detected