mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
refactor: move plugin hook methods to plugin.hooks.*
This commit is contained in:
@@ -100,7 +100,7 @@ SocketUser.reset.commit = async function (socket, data) {
|
||||
const [uid] = await Promise.all([
|
||||
db.getObjectField('reset:uid', data.code),
|
||||
user.reset.commit(data.code, data.password),
|
||||
plugins.fireHook('action:password.reset', { uid: socket.uid }),
|
||||
plugins.hooks.fire('action:password.reset', { uid: socket.uid }),
|
||||
]);
|
||||
|
||||
await events.log({
|
||||
|
||||
Reference in New Issue
Block a user