Hi,
I am fairly new to CI and Freakauth but already I feel both of these are great! I was wondering if I can get some help with a couple of nagging issues to do with validation? By the way, I am using CI 1.6.3 with FreakAuth 1.1 and PHP5.
1/ I have been trying out the sample files that came with the FreakAuth download. When I try to edit a user profile (whether it’s superadmin or superadmin), it seems that the rules for password/password_confirm don’t apply? Below is a snippet copied from controllers/admin/admins.php
function edit ($id)
.
.
$rules['password'] = 'trim|xss_clean|password_backend_check';
$rules['password_confirm'] = "trim|xss_clean|matches[password]";
However, even when I key in something in the password field and leave the password_confirm field blank, there was no error?? In fact, I even included the “required” rule for password but again this does not seem to have any effect? Am I missing something obvious here?
2/ On the same edit example, when a validation error occurs, the edit form is presented together with some fields filled in. However, when I looked at the source, the “value” for all input forms remains empty. My question is: how/where does the input forms get their values from? ps. I hope that this is not a basic PHP question but CI/FreakAuth-related??
Thanks in advance!