// UpdateUser updates user's data in the underlying data store.
UpdateUser updates user's data in the underlying data store.
// UpdateUser updates user ' s data in the underlying data store .
func (s *Store) UpdateUser(ctx context.Context, usr user.User) error {
	usrC := usr.ExposeCore()
	_, err := s.q.ExecContext(ctx, s.db, "update_user_by_id",
		usrC.UpdatedAt,
		usrC.ActivatedAt,
		usrC.Email,
		usrC.UnverifiedEmail,
		usrC.PasswordHash,
		usrC.Verification.Hash,
		usrC.Verification.NextAt,
		usrC.Verification.ExpiresAt,
		usrC.Recovery.Hash,
		usrC.Recovery.NextAt,
		usrC.Recovery.ExpiresAt,
		usrC.ID,
	)
	return detectErr(err)
}
func ( s * Store ) UpdateUser ( ctx context . Context , usr user . User ) error { usrC := usr . ExposeCore ( ) _ , err := s . q . ExecContext ( ctx , s . db , " " , usrC . UpdatedAt , usrC . ActivatedAt , usrC . Email , usrC . UnverifiedEmail , usrC . PasswordHash , usrC . Verification . Hash , usrC . Verification . NextAt , usrC . Verification . ExpiresAt , usrC . Recovery . Hash , usrC . Recovery . NextAt , usrC . Recovery . ExpiresAt , usrC . ID , ) return detectErr ( err ) }
UpdateUser updates user's data in the underlying data store.
UpdateUser updates user ' s data in the underlying data store .