I get this error after putting in good credentials on the app_Login screen generated by the security module. I’ve regenerated and deployed the applications. Wiped the MySQL security tables and reentered the security information, but can’t get paste this error. Can anyone offer any advice? The code seen below.
$slogin = sc_sql_injection({login});
$spswd = sc_sql_injection(({pswd}));
$sql = "SELECT
priv_admin,
active,
name,
email
FROM sec_users
WHERE login = $slogin
AND pswd = ".$spswd;
sc_lookup(rs, $sql);
if(count({rs}) == 0)
{
sc_log_add(‘login Fail’, {lang_login_fail} . {login});
;
sc_error_message({lang_error_login});
}
else if({rs[0][1]} == ‘Y’)
{
[usr_login] = {login};
[usr_priv_admin] = {rs[0][0]};
[usr_name] = {rs[0][2]};
[usr_email] = {rs[0][3]};
}
else
{
sc_error_message({lang_error_not_active});
sc_error_exit();
}