Index: typo3/sysext/core/Resources/Private/Layouts/SystemEmail.html
===================================================================
diff --git a/typo3/sysext/core/Resources/Private/Layouts/SystemEmail.html b/typo3/sysext/core/Resources/Private/Layouts/SystemEmail.html
--- a/typo3/sysext/core/Resources/Private/Layouts/SystemEmail.html
+++ b/typo3/sysext/core/Resources/Private/Layouts/SystemEmail.html
@@ -429,10 +429,13 @@
                             <tbody>
                             <tr>
                                 <td valign="top" class="image" align="center" style="padding: 0px 36px; padding-bottom: 20px; text-align: center;">
-                                    <f:if condition="{typo3.systemConfiguration.backend.loginLogo}">
+                                    <f:if condition="{typo3.systemConfiguration.backend.loginLogoBase64}">
                                         <f:then>
-                                            <img src="{typo3.systemConfiguration.backend.loginLogo -> core:normalizedUrl()}" alt="Logo" height="41" width="150" />
+                                            <img src="{typo3.systemConfiguration.backend.loginLogoBase64}" alt="Logo" height="41" width="150" />
                                         </f:then>
+                                        <f:else if="{typo3.systemConfiguration.backend.loginLogo}">
+                                            <img src="{typo3.systemConfiguration.backend.loginLogo -> core:normalizedUrl()}" alt="Logo" height="41" width="150" />
+                                        </f:else>
                                         <f:else if="{typo3.systemConfiguration.backend.loginHighlightColor}">
                                             <img src="{normalizedParams.siteUrl}{f:uri.resource(path: 'EXT:core/Resources/Public/Images/typo3_black.svg')}" alt="TYPO3 Logo" height="41" width="150" />
                                         </f:else>
