Fix twofactor loading and public image

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ 2022-04-15 10:28:54 +02:00
parent a1aaaaa0c8
commit fa18a77fa2
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF
2 changed files with 3 additions and 2 deletions

View file

@ -272,6 +272,7 @@ class ThemingController extends Controller {
/**
* @PublicPage
* @NoCSRFRequired
* @NoSameSiteCookieRequired
*
* @param string $key
* @param bool $useSvg
@ -304,6 +305,7 @@ class ThemingController extends Controller {
* @NoCSRFRequired
* @PublicPage
* @NoSameSiteCookieRequired
* @NoTwoFactorRequired
*
* @return FileDisplayResponse|NotFoundResponse
*/

View file

@ -23,8 +23,7 @@ body {
color: var(--color-primary-text);
text-align: center;
background-color: var(--color-primary);
background-image: var(--image-background);
background-image: var(--image-background), linear-gradient(40deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
background-image: var(--image-background, var(--image-background-plain, url('../../../core/img/background.svg'), linear-gradient(40deg, #0082c9 0%, #30b6ff 100%)));
background-position: 50% 50%;
background-repeat: repeat;
background-size: var(--image-background-size, 275px, contain);