From f7d1c9fb1bffb78a05392fb17ee406188941f5a8 Mon Sep 17 00:00:00 2001 From: Anthony Lavado Date: Fri, 4 Oct 2019 03:41:00 -0400 Subject: [PATCH] Resolves missing policy error on user creation Restores the previous method of posting the Users/New request, but adds the password field as well. --- src/bower_components/apiclient/apiclientcore.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bower_components/apiclient/apiclientcore.js b/src/bower_components/apiclient/apiclientcore.js index 90a8d83392..ef73ac0c37 100644 --- a/src/bower_components/apiclient/apiclientcore.js +++ b/src/bower_components/apiclient/apiclientcore.js @@ -1195,8 +1195,12 @@ define(["events", "appStorage"], function(events, appStorage) { return this.ajax({ type: "POST", url: url, - data: JSON.stringify(user), - contentType: "application/json" + data: { + Name: user.Name, + Password: user.Password + + }, + dataType: "json" }) }, ApiClient.prototype.updateUser = function(user) { if (!user) throw new Error("null user");