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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user