File tree 2 files changed +9
-1
lines changed
src/UserManagement/routes
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,13 @@ export function passwordResetNamespace(this: N8nApp): void {
215
215
Logger . info ( 'User password updated successfully' , { userId } ) ;
216
216
217
217
await issueCookie ( res , user ) ;
218
+
219
+ void InternalHooksManager . getInstance ( ) . onUserUpdate ( {
220
+ user_id : userId ,
221
+ fields_changed : [ 'password' ] ,
222
+ } ) ;
223
+
224
+ await this . externalHooks . run ( 'user.password.update' , [ user . email , password ] ) ;
218
225
} ) ,
219
226
) ;
220
227
}
Original file line number Diff line number Diff line change @@ -101,7 +101,8 @@ export async function initTestServer({
101
101
if (
102
102
endpointGroups . includes ( 'credentials' ) ||
103
103
endpointGroups . includes ( 'me' ) ||
104
- endpointGroups . includes ( 'users' )
104
+ endpointGroups . includes ( 'users' ) ||
105
+ endpointGroups . includes ( 'passwordReset' )
105
106
) {
106
107
testServer . externalHooks = ExternalHooks ( ) ;
107
108
}
You can’t perform that action at this time.
0 commit comments