There are indeed limitations on password fields for security reasons. They are:
1. Xataface never loads password fields as part of database queries. e.g. If you have a 'password' field as part of the users table, and you make a call like:
- Code: Select all
$user = df_get_record('users', array('user_id'=>10));
$user->val('password'); // This will be blank even if there is a password in the db
However if a user is saving a new password, then you are able to intercept this password before it hits the database. E.g. in the fieldname__validate() method you will have access to the password field because it wasn't loaded from the database - it was inserted by the user.
And of course you can always cut out the middle man and use a mysql_query() call if you really need to retrieve the password from the db.