backend-plus 2.5.2-betha.28 → 2.5.2-betha.29
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/lib/backend-plus.js +2 -5
- package/package.json +1 -1
package/lib/backend-plus.js
CHANGED
|
@@ -1175,9 +1175,7 @@ AppBackend.prototype.start = function start(opts){
|
|
|
1175
1175
|
}
|
|
1176
1176
|
});
|
|
1177
1177
|
const updatePassword = async ({client, username, password, setUpdateDate, errorIfNoResult}) => {
|
|
1178
|
-
const {table, passFieldName, userFieldName, passUpdatedAtFieldName, passAlgorithmFieldName} = be.config.login;
|
|
1179
|
-
const { schema } = be.config.db;
|
|
1180
|
-
|
|
1178
|
+
const {table, passFieldName, userFieldName, passUpdatedAtFieldName, passAlgorithmFieldName, schema} = be.config.login;
|
|
1181
1179
|
const hashPass = await generateScramVerifier(password);
|
|
1182
1180
|
let params = [username, hashPass];
|
|
1183
1181
|
let setters = [`${be.db.quoteIdent(passFieldName)} = $2`];
|
|
@@ -1323,8 +1321,7 @@ AppBackend.prototype.start = function start(opts){
|
|
|
1323
1321
|
}
|
|
1324
1322
|
);
|
|
1325
1323
|
be.changePassword=async function(client,username,oldPassword,newPassword){
|
|
1326
|
-
const { table, passFieldName, userFieldName } = be.config.login;
|
|
1327
|
-
const { schema } = be.config.db;
|
|
1324
|
+
const { table, passFieldName, userFieldName, schema } = be.config.login;
|
|
1328
1325
|
let ok = false;
|
|
1329
1326
|
const data = await client.query(
|
|
1330
1327
|
`SELECT *
|
package/package.json
CHANGED