We were asking for too many parameters for changing the plan, token is not always necessary.
This commit is contained in:
parent
2b0f3a9ba7
commit
babc6fa867
2 changed files with 2 additions and 2 deletions
|
@ -1126,7 +1126,7 @@ def subscription_view(stripe_subscription, used_repos):
|
|||
|
||||
@app.route('/api/user/plan', methods=['PUT'])
|
||||
@api_login_required
|
||||
@required_json_args('token', 'plan')
|
||||
@required_json_args('plan')
|
||||
def subscribe_api():
|
||||
request_data = request.get_json()
|
||||
plan = request_data['plan']
|
||||
|
|
Reference in a new issue