Skip to content

Commit

Permalink
implemented @skjnldsv improvements and totp-fix
Browse files Browse the repository at this point in the history
Signed-off-by: Felix N眉sse <[email protected]>
  • Loading branch information
newhinton committed Oct 4, 2022
1 parent 23a85f8 commit 9345e59
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
['name' => 'admin_settings#set', 'url' => '/settings/admin/set', 'verb' => 'POST'],
['name' => 'admin_settings#getCustomization', 'url' => '/settings/admin/getCustomization/{providername}', 'verb' => 'GET'],
['name' => 'personal_settings#set', 'url' => '/settings/personal/set', 'verb' => 'POST'],
['name' => 'css#login', 'url' => '/api/login', 'verb' => 'GET'],
['name' => 'css#header', 'url' => '/api/header', 'verb' => 'GET'],
['name' => 'css#dashboard', 'url' => '/api/dashboard', 'verb' => 'GET']
['name' => 'css#login', 'url' => '/api/login.css', 'verb' => 'GET'],
['name' => 'css#header', 'url' => '/api/header.css', 'verb' => 'GET'],
['name' => 'css#dashboard', 'url' => '/api/dashboard.css', 'verb' => 'GET']
]
]);
6 changes: 6 additions & 0 deletions css/login_static.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ body#body-login {
}
}

@media only screen and (max-width: 1920px) {
body#body-login {
background-image: url('https://source.unsplash.com/featured/1920x1080?nature,nature') !important;
}
}

@media only screen and (min-width: 2561px) {
body#body-login {
background-image: url('https://source.unsplash.com/featured/3840x2160?nature,nature') !important;
Expand Down
3 changes: 2 additions & 1 deletion lib/Controller/CssController.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ public function header(): DataDisplayResponse {
/**
* Todo: check the flags below
*
* @NoAdminRequired
* @NoCSRFRequired
* @PublicPage
* @NoSameSiteCookieRequired
* @NoTwoFactorRequired
*
* @return DataDisplayResponse
*/
Expand Down

0 comments on commit 9345e59

Please sign in to comment.