Skip to content

Commit

Permalink
fromemail is a required field for Outlook
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin committed Jan 13, 2025
1 parent a9acf89 commit 975a940
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 975a940

Please sign in to comment.