@budibase/worker 2.13.52 → 2.13.53
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.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/worker",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.13.
|
|
4
|
+
"version": "2.13.53",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"author": "Budibase",
|
|
38
38
|
"license": "GPL-3.0",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@budibase/backend-core": "2.13.
|
|
41
|
-
"@budibase/pro": "2.13.
|
|
42
|
-
"@budibase/string-templates": "2.13.
|
|
43
|
-
"@budibase/types": "2.13.
|
|
40
|
+
"@budibase/backend-core": "2.13.53",
|
|
41
|
+
"@budibase/pro": "2.13.53",
|
|
42
|
+
"@budibase/string-templates": "2.13.53",
|
|
43
|
+
"@budibase/types": "2.13.53",
|
|
44
44
|
"@koa/router": "8.0.8",
|
|
45
45
|
"@techpass/passport-openidconnect": "0.3.2",
|
|
46
46
|
"@types/global-agent": "2.1.1",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "fdca8d1da7a9fd7ccd26a0aca8c19da4699325d3"
|
|
111
111
|
}
|
package/scripts/dev/manage.js
CHANGED
|
@@ -122,10 +122,10 @@ export const resetUpdate = async (ctx: Ctx<PasswordResetUpdateRequest>) => {
|
|
|
122
122
|
ctx.body = {
|
|
123
123
|
message: "password reset successfully.",
|
|
124
124
|
}
|
|
125
|
-
} catch (err) {
|
|
125
|
+
} catch (err: any) {
|
|
126
126
|
console.warn(err)
|
|
127
127
|
// hide any details of the error for security
|
|
128
|
-
ctx.throw(400, "Cannot reset password.")
|
|
128
|
+
ctx.throw(400, err.message || "Cannot reset password.")
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
@@ -229,7 +229,7 @@ describe("/api/global/auth", () => {
|
|
|
229
229
|
)
|
|
230
230
|
|
|
231
231
|
expect(res.body).toEqual({
|
|
232
|
-
message: "
|
|
232
|
+
message: "Password change is disabled for this user",
|
|
233
233
|
status: 400,
|
|
234
234
|
})
|
|
235
235
|
}
|
|
@@ -261,8 +261,12 @@ describe("/api/global/auth", () => {
|
|
|
261
261
|
)
|
|
262
262
|
|
|
263
263
|
// convert to account owner now that password has been requested
|
|
264
|
-
const account =
|
|
265
|
-
|
|
264
|
+
const account: CloudAccount = {
|
|
265
|
+
...structures.accounts.ssoAccount(),
|
|
266
|
+
budibaseUserId: "budibaseUserId",
|
|
267
|
+
email: user.email,
|
|
268
|
+
}
|
|
269
|
+
mocks.accounts.getAccountByTenantId.mockReturnValueOnce(
|
|
266
270
|
Promise.resolve(account)
|
|
267
271
|
)
|
|
268
272
|
|
package/src/tests/api/users.ts
CHANGED