@formio/appserver 2.0.0-rc.6 → 2.0.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -229,8 +229,8 @@ exports.LoginAction = {
|
|
|
229
229
|
return (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
230
230
|
var _a, _b;
|
|
231
231
|
debug('Login Action');
|
|
232
|
-
const username = (0, get_1.default)((_a = req.body) === null || _a === void 0 ? void 0 : _a.data, userfield);
|
|
233
|
-
const password = (0, get_1.default)((_b = req.body) === null || _b === void 0 ? void 0 : _b.data, passfield);
|
|
232
|
+
const username = (0, get_1.default)((_a = (req.originalBody || req.body)) === null || _a === void 0 ? void 0 : _a.data, userfield);
|
|
233
|
+
const password = (0, get_1.default)((_b = (req.originalBody || req.body)) === null || _b === void 0 ? void 0 : _b.data, passfield, '');
|
|
234
234
|
if (!username) {
|
|
235
235
|
error('Missing username');
|
|
236
236
|
return next('Missing username');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formio/appserver",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.8",
|
|
4
4
|
"description": "A highly performant and extensible Application Server for Form.io Multi-Tenant Deployments.",
|
|
5
5
|
"main": "server.js",
|
|
6
6
|
"scripts": {
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"homepage": "https://github.com/formio/appserver#readme",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@formio/appserver-auth-jwt": "^2.0.0-rc.3",
|
|
32
|
-
"@formio/appserver-core": "^2.0.0-rc.
|
|
32
|
+
"@formio/appserver-core": "^2.0.0-rc.8",
|
|
33
33
|
"@formio/appserver-db-mongodb": "^2.0.0-rc.3",
|
|
34
|
-
"@formio/appserver-types": "^2.0.0-rc.
|
|
34
|
+
"@formio/appserver-types": "^2.0.0-rc.4",
|
|
35
35
|
"@formio/core": "2.4.0-dev.286.23ccfc3",
|
|
36
36
|
"@formio/license": "2.0.1",
|
|
37
37
|
"async": "^3.2.6",
|