Skip to content

Commit

Permalink
Merge branch 'hotfix/20241223_1318_account_media_type_error'
Browse files Browse the repository at this point in the history
  • Loading branch information
RK206 committed Dec 23, 2024
2 parents e0ee707 + bf7de47 commit b608c3b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion portality/view/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ def username(username):
if not form.validate():
return render_template(template, account=acc, form=form)

newdata = request.json if request.json else request.values
newdata = request.values
try:
newdata = request.json
except:
pass

# newdata = request.json if request.json else request.values
if request.values.get('submit', False) == 'Generate a new API Key':
acc.generate_api_key()

Expand Down

0 comments on commit b608c3b

Please sign in to comment.