diff --git a/data/web/js/build/013-mailcow.js b/data/web/js/build/013-mailcow.js index 01baa547b..08c6060d2 100644 --- a/data/web/js/build/013-mailcow.js +++ b/data/web/js/build/013-mailcow.js @@ -613,6 +613,8 @@ $(document).ready(function() { $form.find('input[name="password1"]').prop('required', !isOauth); $form.find('.oauth-source-hint').toggle(isOauth); $form.find('.imapsync-oauth-connect-row').toggle(isAuthCode); + $form.find('.imapsync-user1-row').toggle(!isAuthCode); + $form.find('input[name="user1"]').prop('required', !isAuthCode); }); // Source editor: OAuth block + authorization_code fields diff --git a/data/web/templates/edit/syncjob.twig b/data/web/templates/edit/syncjob.twig index b575f555b..2d171792c 100644 --- a/data/web/templates/edit/syncjob.twig +++ b/data/web/templates/edit/syncjob.twig @@ -24,7 +24,7 @@ {{ lang.syncjobs.oauth_source_hint }} -