This topic is locked

V5.2 Dynamic Rights + Encryption

4/17/2008 12:13:10 PM
ASPRunnerPro General questions
S
stealthwifi author

Hello,
Using the new Dynamic Rights feature in AspRunner 5.2 (414) and enabling Encrypt passwords does not encrypt the password of new users being added.
If I go to the admin area (admin_users_list.asp) and add a new user and password and save it saves the password in clear text. Upon trying to login with the new account it fails because it needs to be encrypted. Running the Encrypt.asp manually then encrypts the password and the account can be used to login.
Does Dynamic Rights not support Encryption?

I would think if it's made to allow easy adding of accounts it would have a routing in after add to encrypt build in.

Should I add this manualy or am i mising something? (what would be the best way)
Cheers-

J
Jane 4/18/2008

Hi,
password-encryption works on the register, change password and login pages only.

To encrypt password on the add page (in the admin area) add following code to the "Before record added" event on the Events tab:

dict("FieldName") = md5(dict("FieldName"))


Then build your project, open generated admin_users_add.asp file and add this line before <%:

<!--#include file="include/md5.asp"-->


We'll add this option to the next ASPRunner version.

S
stealthwifi author 4/18/2008

Works great!
Is there a way to add the <!--#include file="include/md5.asp"--> in a file before the build so I don't have to change it for every build?
Cheers-

Sergey Kornilov admin 4/18/2008

Try to add include file in include/header.asp.