diff --git a/smart.cmake b/smart.cmake index 0266961..df075a8 100644 --- a/smart.cmake +++ b/smart.cmake @@ -128,6 +128,15 @@ if( $c[0] eq 'logout' ) exit; } +# Static assets must be available before login, otherwise the login page +# cannot load the SMArT logo and icons. +if( $c[0] eq 'static' ) +{ + do( $smart_libexec_dir . '/static.pl' ); + handle_request(); + exit; +} + if( ! valid_session() ) { redirect( '/login' );