mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Improvements
This commit is contained in:
parent
f8dd4159a8
commit
f8d76d66c3
|
@ -108,7 +108,7 @@ const getMailerInstance = async (
|
|||
} catch (error) {
|
||||
if (error instanceof Error) {
|
||||
return res.status(500).json({
|
||||
message: 'Email sending must be set up in order to request a password reset email',
|
||||
message: 'There is a problem with your SMTP setup',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,6 +66,12 @@ export = {
|
|||
includeRole,
|
||||
});
|
||||
|
||||
if (apiKeyUserOwner.id === idToDelete) {
|
||||
return res.status(400).json({
|
||||
message: 'Cannot delete your own user',
|
||||
});
|
||||
}
|
||||
|
||||
if (!users?.length || (transferId !== '' && users.length !== 2)) {
|
||||
return res.status(400).json({
|
||||
message:
|
||||
|
|
Loading…
Reference in a new issue