Hi all,
I’ve defined a form with user and password definition. The form is the resources form of prj management SC sample.
When I save the form and user the password field save its value on database in clear as text not encrypted.
The password field is a text type and then when I am in the form definition I flag as needed the password radio box to say that field has to be interpeted as password.
Where is my mystake ? Need I to make something different ?
When I try later to do the login inserting user and password , the following code do not work probably for the problem above described.
sc_reset_apl_status();
sc_lookup(dataset, "select resourceid, pwd from resources where login = ‘{usuario}’ ");
if(!isset({dataset[0][0]}))
{
sc_error_message(“Utente/Password non validi”);
sc_error_exit();
}else
{
$senha_teste = md5({senha});
if ($senha_teste != {dataset[0][1]})
{
sc_error_message(“Utente/Password non validi”);
sc_error_exit();
}
//updateTaskDaysOverdue();
sc_redir(‘menu.php’, v_resource={dataset[0][0]});
}