PDA

View Full Version : 8-17CVS Add new user error


wapu
19-08-04, 04:42 AM
I was getting a javascript null value error when adding a new user using the CVS Snapshot I downloaded 8-17. The snapshot now(I was using 1.0.2-1 before this snapshot) uses values from the $dPconfig array to set the minimum length of the user name and password. Those values weren't being sent to the browser and when the js tried to access the variable name for them, they had a null value.

Here is my solution to send the user name and pass min lenghts to the browser for use in the js SubmitIt() function.

Add the following code to lines 113 and 114 in the dotproject\modules\admin\addedituser.php file.
<input type="hidden" name="username_min_len" value="<?php echo $dPconfig['username_min_len'];?>" />
<input type="hidden" name="password_min_len" value="<?php echo $dPconfig['password_min_len'];?>" />

If there is a better way to do this, please let me know. I wanted to show my boss the new stuff and couldn't create an account for him.


P.S. I was gonna submit this as a bug, but It said not to submit anything right at the moment.

Karen
19-08-04, 10:12 AM
P.S. I was gonna submit this as a bug, but It said not to submit anything right at the moment.

It says not to submit feature requests or suggestions to do with permissions - nothing about lodging bugs.

Karen