Commit c2cf0407 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '5778-create-a-security-library-for-fusiondirectory' into '1.4-dev'

Resolve "Create a security library for fusiondirectory"

See merge request fusiondirectory/fd!520
parents a74726b0 a6fbda7e
......@@ -36,9 +36,6 @@ class LoginPost extends LoginMethod
static::init();
/* Reset error messages */
$message = '';
$smarty->assign ('focusfield', 'username');
if (($_SERVER['REQUEST_METHOD'] == 'POST') && isset($_POST['login']) && isset($_POST['username']) && isset($_POST['password'])) {
......@@ -70,9 +67,11 @@ class LoginPost extends LoginMethod
static protected function displayLogin()
{
global $smarty,$message,$config,$ssl,$error_collector,$error_collector_mailto;
$lang = session::global_get('lang');
error_reporting(E_ALL | E_STRICT);
/* Fill template with required values */
$username = '';
if (isset($_POST['username'])) {
......
  • SonarQube analysis indicates that quality gate is failed.

    • Security Rating on New Code is passed: Actual value 1
    • Reliability Rating on New Code is failed: Actual value 3 > 1
    • Maintainability Rating on New Code is passed: Actual value 1
    • Duplicated Lines on New Code (%) is passed: Actual value 3.363280350149735

    SonarQube analysis reported no issues.

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment