This topic is locked

Encryption in Admin Area creted through Dynamic Permissions

9/14/2008 12:12:18 PM
PHPRunner General questions
B
bochaka author

Hi

In my project if a user registers using the normal register page , their passwords are encrypted. But if a user is added ONLINE via the admin permissions consul created by setting up dynamic permissions, the new users or existing edited user passwords are not encrypted.
I also have another issue. i want to be able to add from the admin control panel ,records for non admin group users, however after I add them the client cannot see them when they login, and setting permission to" users can see other users records ", for this group, is not an option. Wnen I view the recoed I note my name is where there name should be, even though I selected their name from the dropdown list of users when inputting the clients data from the add record form

I am using phprunner ver4.2 latest build.

J
Jane 9/15/2008

Hi,
please see my answers below:

  1. you can encrypt password on the add page manually. Use Before record added event on the Events tab for this purpose.

    Here is a sample:
    $values["PasswordField"] = md5($values["PasswordField"]);


2. it seems you have set up User can see and edit their own records only option on the Advanced security settingsdialog on the Security tab for this table or set up default value for this field on the Visual Editor tab.

You need to create custom view on the Datasource table tab, don't select any default values or security methods for this view and use this view to add new records.