Skip to content

Commit

Permalink
fromemail is a required field for Outlook (#15382)
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin authored Jan 14, 2025
1 parent a8aa259 commit 3b3213a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/plugins/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ async def do_update(self, data):
'This field is required when SMTP authentication is enabled',
)

if not new['oauth']:
if not new['oauth'] or new['oauth']['provider'] == 'outlook':
if not new['fromemail']:
verrors.add('mail_update.fromemail', 'This field is required')

Expand Down

0 comments on commit 3b3213a

Please sign in to comment.