fix(notif): include year in notifications (#1439)
* fix(notif): include year in notifications * fix(lang): fix shared overwritten strings * fix: check if email agent is actually enabled when generating passwords
This commit is contained in:
@@ -84,7 +84,10 @@ router.post(
|
||||
const passedExplicitPassword = body.password && body.password.length > 0;
|
||||
const avatar = gravatarUrl(body.email, { default: 'mm', size: 200 });
|
||||
|
||||
if (!passedExplicitPassword && !settings.notifications.agents.email) {
|
||||
if (
|
||||
!passedExplicitPassword &&
|
||||
!settings.notifications.agents.email.enabled
|
||||
) {
|
||||
throw new Error('Email notifications must be enabled');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user