title: How to change email address via gitlab-rails (avoid email reconfirmation)
body: <p>While I am waiting for a merge request to be introduced to Gitlab to avoid this problem I need a workaround to edit an user's email address via the gitlab-rails console.</p>
  
  <p>Using this:</p>
  
  <pre><code>user = User.find_by(name: 'test')
  user.email = 'test@example.com'
  user.save
  </code></pre>
  
  <p>allows to edit the user but I am asked to confirm the new email before it is applied. Any idea?</p>