code: def disable_user():
      
      req = flask.request.get_json(force=True)
      usr = User.query.filter_by(username=req.get('username', None)).one()
      usr.is_active = False
      db.session.commit()
      return flask.jsonify(message='disabled user {}'.format(usr.username))
docs: Disables a user in the data store
  
      .. example::
          $ curl http://localhost:5000/disable_user -X POST \
            -H "Authorization: Bearer <your_token>" \
            -d '{"username":"Walter"}'