title: How to confirm user created by create_user in flask security mongoengine app?
body: <p>I have a python flask app using <strong>mongoengine</strong> and <strong>flask-security</strong> built up from the examples to expose all of the confirmation, registration, tracking, and recovery functionality.</p>
  
  <p>Everything works except that a user created imperatively in the code using:</p>
  
  <pre><code>MongoEngineUserDatastore.create_user(...)
  </code></pre>
  
  <p>cannot login. That is, when you try to login with this user, you get an error message:</p>
  
  <pre><code>"Email requires confirmation"
  </code></pre>
  
  <p>Since the email with a hashed URL has not been sent, there is no way to confirm. Is there a parameter I can pass somewhere to confirm this user on creation or set the confirmed flag somewhere?</p>
  
  <p><a href="https://gist.github.com/davidthewatson/327776905ef30815c138" rel="nofollow">Here</a>'s my code:</p>