upgrade: make changes to be compatible with Kratos 0.9.0-alpha.3
This commit is contained in:
parent
caa7e0005c
commit
c120ab603a
4 changed files with 10 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Reference in a new issue