Do not require startup when not necessary + refacto

This commit is contained in:
jf-cbd
2026-03-10 12:11:42 +01:00
parent a68b165498
commit ebc238a3ce
2 changed files with 16 additions and 12 deletions

View File

@@ -1,5 +1,10 @@
<?php
if (UserRights::IsLoggedIn()) {
throw new Exception("User should not be authenticated at this point");
}
require_once(APPROOT.'/application/startup.inc.php');
LoginWebPage::DoLogin(true);
echo 'Yo !';