Closed (fixed)
Project:
No Request New Password
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
4 Apr 2008 at 19:26 UTC
Updated:
14 May 2008 at 17:32 UTC
I am using Drupal 5.7 with this module and it works great to hide the password change. The only problem I am still having is that the email information for the user is pulled from our Active Directory using the LDAP module. When the user clicks on "My Account" and then clicks "Edit", he is still able to change his email address and we do not want that changed for obvious reasons. Is there anyway to configure this module to include the ability to disable users from changing their email addresses? Maybe I am barking up the wrong tree. Is there an easier way?
Comments
Comment #1
pedrofaria commentedSorry about delay...
So... your request is not the initial propose of this module... but you can do it easily editing hook_form_alter of this module...
Cya
Comment #2
pedrofaria commentedComment #3
eevul commentedThanks for the reply. I looked at the noreqnewpass.module but since I am fairly new to Drupal and not PHP savvy, I am not able to figure out what I need to do. Could you perhaps shed some light on how to disable the editing of emails for users? Basically it should have the same function as disabling the change password/request password.
Thanks in advance!
Comment #4
eevul commentedI have disabled this module for now since it was causing some problems with my LDAP integration. I have enabled LDAP Data and when a new user would log in, their LDAP data (such as email, display name, etc.) would not be displayed and I would get this error (as long as account didn't exist):
* warning: array_keys() [function.array-keys]: The first argument should be an array in /var/www/site/modules/user/user.module on line 378.
* warning: array_fill() [function.array-fill]: Number of elements must be positive in /var/www/site/modules/user/user.module on line 379.
* warning: implode() [function.implode]: Invalid arguments passed in /var/www/site/modules/user/user.module on line 379.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /var/www/site/includes/database.mysql.inc on line 172.
I unchecked the "Disable Request new password link" and "Disable user change password ability", deleted the user account and had the user log in again and it was fine; no error and LDAP data was displayed. I tested this several times with several accounts with the same results.
Comment #5
pedrofaria commentedChange your module function to it...
cya
Comment #6
pedrofaria commentedcontinue on:
http://drupal.org/node/243942
Comment #7
eevul commentedSorry for the delayed response as I got sidetracked with another project. I will try out your last suggestion and will let you know.
Comment #8
pedrofaria commented