Skip to content
Snippets Groups Projects
Verified Commit c120ab60 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

upgrade: make changes to be compatible with Kratos 0.9.0-alpha.3

parent caa7e000
Branches
No related tags found
No related merge requests found
......@@ -236,7 +236,7 @@ cat source_env.local
export HYDRA_ADMIN_URL=http://localhost:4445
export KRATOS_PUBLIC_URL=http://localhost/api
export KRATOS_ADMIN_URL=http://localhost:8000
export KRATOS_ADMIN_URL=http://localhost:8000/admin
export LOGIN_PANEL_URL=http://localhost/web
export DATABASE_URL="mysql+pymysql://stackspin:stackspin@localhost/stackspin"
```
......
......@@ -31,7 +31,7 @@ tomli==1.2.3
typing-extensions==4.1.1
urllib3==1.26.8
Werkzeug==2.0.3
ory-kratos-client==0.8.0a2
ory-kratos-client==0.9.0a2
pymysql
Flask-SQLAlchemy
hydra-client
......
......@@ -28,7 +28,7 @@ export TOKEN_URL="https://sso.init.stackspin.net/oauth2/token"
# Login facilitator paths
export KRATOS_PUBLIC_URL=http://localhost/kratos
export KRATOS_ADMIN_URL=http://localhost:8000
export KRATOS_ADMIN_URL=http://localhost:8000/admin
export HYDRA_PUBLIC_URL="https://sso.init.stackspin.net"
export HYDRA_ADMIN_URL=http://localhost:4445
export LOGIN_PANEL_URL=http://localhost/web/
......
......@@ -56,8 +56,8 @@ function flow_login() {
url: uri,
success: function(data) {
// Render login form (group: password)
var html = render_form(data, 'password');
// Render login form (group: profile)
var html = render_form(data, 'profile');
$("#contentLogin").html(html);
},
......@@ -134,10 +134,12 @@ function flow_settings() {
}
// FIXME: This seems to be not necessary anymore in kratos 0.9.0
// because they moved the password field to the profile group
// Render the password & profile form based on the fields we got
// from the API
var html = render_form(data, 'password');
$("#contentPassword").html(html);
// var html = render_form(data, 'profile');
// $("#contentPassword").html(html);
html = render_form(data, 'profile');
$("#contentProfile").html(html);
......@@ -309,7 +311,7 @@ function getFormElement(type, name, value) {
}
if (name == 'password_identifier') {
if (name == 'identifier') {
return getFormInput(
'email',
name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment