Clear license errors when logging in.

Former-commit-id: 1f68f190ebc84202b0e39b92c12d065f8b52543c
This commit is contained in:
Ramon Novoa 2019-03-26 15:31:51 +01:00
parent c25143c27e
commit aa0ab53cf3
1 changed files with 5 additions and 0 deletions

View File

@ -244,6 +244,11 @@ if (strlen($search) > 0) {
// Login process // Login process
if (! isset($config['id_user'])) { if (! isset($config['id_user'])) {
// Clear error messages.
unset($_COOKIE['errormsg']);
setcookie('errormsg', null, -1);
if (isset($_GET['login'])) { if (isset($_GET['login'])) {
include_once 'include/functions_db.php'; include_once 'include/functions_db.php';
// Include it to use escape_string_sql function // Include it to use escape_string_sql function