mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
fix: Bug when trailing user reset password on instance (no-changelog) (#7250)
Github issue / Community forum post (link here to close automatically):
This commit is contained in:
parent
01e9340621
commit
d47986aec3
|
@ -238,8 +238,9 @@ describe('POST /change-password', () => {
|
|||
.post('/change-password')
|
||||
.query(invalidPayload);
|
||||
expect(response.statusCode).toBe(400);
|
||||
|
||||
const { password: storedPassword } = await Db.collections.User.findOneByOrFail({});
|
||||
const { password: storedPassword } = await Db.collections.User.findOneByOrFail({
|
||||
id: owner.id,
|
||||
});
|
||||
expect(owner.password).toBe(storedPassword);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue