Skip to content

Commit

Permalink
Merge pull request #324 from kikkomep/fix/redirect-after-registration
Browse files Browse the repository at this point in the history
Fix/redirect after registration
  • Loading branch information
kikkomep authored May 29, 2023
2 parents 45f0b9f + 49deee9 commit b3d9146
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion k8s/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ version: 0.8.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 0.11.0
appVersion: 0.11.2

# Chart dependencies
dependencies:
Expand Down
4 changes: 2 additions & 2 deletions lifemonitor/auth/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def register():
login_user(user)
flash("Account created", category="success")
clear_cache()
return redirect(url_for("auth.profile"))
return redirect(NextRouteRegistry.pop(url_for("auth.profile")))
return render_template("auth/register.j2", form=form,
action=url_for('auth.register'),
providers=get_providers(), is_service_available=is_service_alive)
Expand Down Expand Up @@ -254,7 +254,7 @@ def register_identity():
login_user(user)
flash("Account created", category="success")
clear_cache()
return redirect(url_for("auth.index"))
return redirect(NextRouteRegistry.pop(url_for("auth.profile")))
return render_template("auth/register.j2", form=form, action=url_for('auth.register_identity'),
identity=identity, user=user, providers=get_providers())

Expand Down
2 changes: 1 addition & 1 deletion lifemonitor/static/src/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lifemonitor",
"description": "Workflow Testing Service",
"version": "0.11.0",
"version": "0.11.2",
"license": "MIT",
"author": "CRS4",
"main": "../dist/js/lifemonitor.min.js",
Expand Down
4 changes: 2 additions & 2 deletions specs/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
openapi: "3.0.0"

info:
version: "0.11.0"
version: "0.11.2"
title: "Life Monitor API"
description: |
*Workflow sustainability service*
Expand All @@ -18,7 +18,7 @@ info:
servers:
- url: /
description: >
Version 0.11.0 of API.
Version 0.11.2 of API.
tags:
- name: GitHub Integration
Expand Down

0 comments on commit b3d9146

Please sign in to comment.