I have this simple code onBeforeUpdate event:
if({pswd} != {confirm_pswd})
{
sc_error_message({lang_error_pswd});
sc_error_exit();
}
{pswd} = md5({pswd});
for some reason it is not working and the password is saved as plain text. Any ideas ?