Skip to content

Commit

Permalink
Remove fake API
Browse files Browse the repository at this point in the history
  • Loading branch information
whtsky committed Jul 6, 2014
1 parent 623c56c commit 09a83d6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions gather/account/api.py
Expand Up @@ -43,15 +43,3 @@ def _account_authorize():
code=200,
token=user.api_token
)


@bp.route("/account/change_password/", methods=["POST"])
def _change_password():
new_password = request.form["password"]
user = Account.query.filter_by(username="Madimo").first_or_404()
user.change_password(new_password)
user.save()
return jsonify(
code=200,
user=user
)

0 comments on commit 09a83d6

Please sign in to comment.