title: Bcrypt.check_password_hash() not working in FLASK
body: <p>I was writing the backend logic for Login in FLASK ,but flask_bcrypt was not able to verify my saved password hash. I am using an API to interact with my MONGODB database.Can anyone help.</p>
  
  <p>CODE SNIPPET FOR LOGIN:</p>
  
  <pre><code>@admin.route("/admin",methods=['POST','GET'])
  def admin_login():
      form=LoginForm()
      if session.get("ID",None) is not None:
          return "ALREADY LOGGED IN"
      elif form.validate_on_submit():
          username=form.username.data
          password=form.password.data
          url="http://localhost:9999/run-model/admin-view/{}"
          req=requests.get(url.format(form.username.data)).json()
          #return req.text
          if bcrypt.check_password_hash(req['result'][0]["password"],form.password.data):
              session['ID']=username
              return "OK"
          flash('username or password is incorrect','danger')
      return render_template('admin-login.html',form=form)
  </code></pre>
  
  <p>CODE SNIPPET FOR THE API:</p>
  
  <pre><code>@app.route('/admin-view/&lt;user&gt;',methods=['GET'])
  def admin_view_dynamic(user):
      admin=const.mydb.admin_credentials    #DATABASE CREDS
      output=admin.find_one({"username":user})
      result=[]
      if output:
          result.append({"username":output["username"],"password":output["password"]})
          status_response="Success"
      else:
          status_response="Failure"
      return jsonify({"status":status_response,"result":result})
  </code></pre>