chore: versioned git urls in comments

future-proofing
This commit is contained in:
Bobby 2022-05-24 07:02:06 +07:00
parent 9cc4832717
commit 110aab097b
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ const self = {
pass: { pass: {
min: 6, min: 6,
// Should not be more than 72 characters // Should not be more than 72 characters
// https://github.com/kelektiv/node.bcrypt.js#security-issues-and-concerns // https://github.com/kelektiv/node.bcrypt.js/tree/v5.0.1#security-issues-and-concerns
max: 64, max: 64,
// Length of randomized password // Length of randomized password
// when resetting passwordthrough Dashboard's Manage Users. // when resetting passwordthrough Dashboard's Manage Users.
@ -29,7 +29,7 @@ const self = {
} }
} }
// https://github.com/kelektiv/node.bcrypt.js#a-note-on-rounds // https://github.com/kelektiv/node.bcrypt.js/tree/v5.0.1#a-note-on-rounds
const saltRounds = 10 const saltRounds = 10
self.verify = async (req, res, next) => { self.verify = async (req, res, next) => {

View File

@ -2924,7 +2924,7 @@ page.deleteUser = id => {
}) })
} }
// Roughly based on https://github.com/mayuska/pagination/blob/master/index.js // Roughly based on https://github.com/mayuska/pagination/blob/03cac0fb8af3a759bc1220bd3c011b67dbc5e909/index.js
page.paginate = (totalItems, itemsPerPage, currentPage) => { page.paginate = (totalItems, itemsPerPage, currentPage) => {
currentPage = currentPage + 1 currentPage = currentPage + 1
const step = 3 const step = 3