Skip to content

Commit

Permalink
Merge pull request #877 from rathisekaran/login_blank_page_issue
Browse files Browse the repository at this point in the history
if username does not exist no need to add to user login history table
  • Loading branch information
samirdas committed Dec 19, 2014
2 parents d7abd59 + 018eabc commit 0806dd7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions php/libraries/SinglePointLogin.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -352,15 +352,10 @@ class SinglePointLogin extends PEAR
$result = $DB->insert('user_login_history', $setArray);
return true;
}
// bad usename or password
}

// bad usename or password
$this->_lastError = "Incorrect username or password";
//insert failed_detail into user_login_history
$this->insertFailedDetail(
$this->_lastError,
$setArray
);
return false;
}

Expand Down

0 comments on commit 0806dd7

Please sign in to comment.