PMCORE-2567 Can not create a new user
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
|
<meta name="csrf-token" content="csrfToken" />
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||||
<!-- These are default values, then they are overridden when processmaker runs -->
|
<!-- These are default values, then they are overridden when processmaker runs -->
|
||||||
|
|||||||
@@ -480,6 +480,7 @@
|
|||||||
formData.append("USR_UID", this.form.USR_UID);
|
formData.append("USR_UID", this.form.USR_UID);
|
||||||
formData.append("USR_LOGGED_NEXT_TIME", this.form.USR_LOGGED_NEXT_TIME);
|
formData.append("USR_LOGGED_NEXT_TIME", this.form.USR_LOGGED_NEXT_TIME);
|
||||||
formData.append("USR_EXTENDED_ATTRIBUTES_DATA", JSON.stringify(extendedAttributes));
|
formData.append("USR_EXTENDED_ATTRIBUTES_DATA", JSON.stringify(extendedAttributes));
|
||||||
|
formData.append("_token", document.querySelector('meta[name="csrf-token"]').content);
|
||||||
axios.post(this.$root.baseUrl() + "users/usersAjax", formData)
|
axios.post(this.$root.baseUrl() + "users/usersAjax", formData)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
response;
|
response;
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ if (isset($_REQUEST['userInterface']) && $_REQUEST['userInterface'] === "v2") {
|
|||||||
$html = file_get_contents(PATH_HTML . "lib/userPersonalInformation/index.html");
|
$html = file_get_contents(PATH_HTML . "lib/userPersonalInformation/index.html");
|
||||||
$html = str_replace("var USR_UID='';", "var USR_UID='{$_GET['USR_UID']}';", $html);
|
$html = str_replace("var USR_UID='';", "var USR_UID='{$_GET['USR_UID']}';", $html);
|
||||||
$html = str_replace("translation.en.js", "translation.{$lang}.js", $html);
|
$html = str_replace("translation.en.js", "translation.{$lang}.js", $html);
|
||||||
|
$html = str_replace("csrfToken", csrfToken(), $html);
|
||||||
echo $html;
|
echo $html;
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ if (isset($_REQUEST['userInterface']) && $_REQUEST['userInterface'] === "v2") {
|
|||||||
|
|
||||||
$html = file_get_contents(PATH_HOME . "public_html/lib/userPersonalInformation/index.html");
|
$html = file_get_contents(PATH_HOME . "public_html/lib/userPersonalInformation/index.html");
|
||||||
$html = str_replace("translation.en.js", "translation.{$lang}.js", $html);
|
$html = str_replace("translation.en.js", "translation.{$lang}.js", $html);
|
||||||
|
$html = str_replace("csrfToken", csrfToken(), $html);
|
||||||
echo $html;
|
echo $html;
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user