diff --git a/app/dashboard/views/api_key.py b/app/dashboard/views/api_key.py index 83335c7e..fe6a6553 100644 --- a/app/dashboard/views/api_key.py +++ b/app/dashboard/views/api_key.py @@ -50,6 +50,9 @@ def api_key(): ) Session.commit() flash(f"New API Key {new_api_key.name} has been created", "success") + return render_template( + "dashboard/new_api_key.html", api_key=new_api_key + ) elif request.form.get("form-name") == "delete-all": ApiKey.delete_all(current_user.id) diff --git a/templates/dashboard/api_key.html b/templates/dashboard/api_key.html index cc9601e6..e0ac8983 100644 --- a/templates/dashboard/api_key.html +++ b/templates/dashboard/api_key.html @@ -13,8 +13,11 @@