1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 17:59:25 +00:00

Reorder User constructor params

This commit is contained in:
2022-04-07 13:38:41 +00:00
parent 95b1636288
commit ad1a50d4f2
9 changed files with 16 additions and 17 deletions

View File

@@ -47,7 +47,7 @@ class PasswordReset {
}
get user() {
return new (require('./User'))(this.#conn, null, this.userId);
return new (require('./User'))(this.#conn, this.userId);
}
static async hashToken(u) {
@@ -63,7 +63,7 @@ class PasswordReset {
}
static async generatePasswordReset(conn, userId) {
const u = await new (require('./User'))(conn, null, userId);
const u = await new (require('./User'))(conn, userId);
let sql = `
delete from passwordReset