-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Satoshi,

I think this is a good idea, especially for local accounts.  For LDAP based 
accounts, the code will look for the email address from LDAP.  If it doesn't 
find it, I believe it will set it to a default based on what is in conf.php.  
There are 2 ways I might go about dealing with that.

1) Add an extra field to the user table - "emailcustom" that is a boolean.  If 
a user manually sets his password, then set emailcustom to 1, and never 
overwrite the email address with something from LDAP.

2) Always allow the email address to be updated from LDAP if it is provided, 
but if it is not provided, never update it and only set it to the default when 
the account is initially added to the user table.

Those are just some suggestions of things to think about.

When you finish this, I'd love to see it contributed back.  :)

Josh

On Friday, March 02, 2012 10:14:03 PM Satoshi KOBAYASHI wrote:
> Hello.
> 
> At present, the e-mail address displayed at the "User Preferences" page
> is a "read only" field.  We are thinking that allowing users to change
> the e-mail address by themselves will make it more convenint.
> 
> To do this, we speculate that editing the "userpreferences.php",
> to change the e-mail address field editable, and to post it to the database
> will work it out. Please help us if there are anything to consider by
> making this change.
> 
> 
> Thank you.
> 
> ----------------------
> Satoshi KOBAYASHI
- -- 
- -------------------------------
Josh Thompson
VCL Developer
North Carolina State University

my GPG/PGP key can be found at pgp.mit.edu

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk9Q0DAACgkQV/LQcNdtPQNiGwCfefKc9Kcvb1jkB4m0+9M9J/fO
TpkAn24mIke7PwAQMYap8Rkt8ghvwa4V
=bmlt
-----END PGP SIGNATURE-----

Reply via email to