YAFLogo

tiger711
  • tiger711
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
16 years ago
Hi all,

I am wondering if there is a way to disable the profile option "Change Email Address".

I originally had the host setting for "Require Email Verification" unchecked as I was already handling email verification on my site. However users are still able to access the email area and change their address. I don't know if yaf would use this email or the email from my aspnet_membership, but I would like the two email addresses to always be the same.

Next I thought that I could use yaf to handle the email address if a user changed it, so I enabled the host setting for "Require Email Verification". Then when I changed the email address for a test account, I received the email message for verification which is great, however an additional record was added to my aspnet_users table. It was the same username, but a different userid. I don't even know if this record would be used as the yaf_user record still points to the correct original provideruserkey.

Just a side note - everything else seems to be working properly between the two membership/profile tables (aspnet_ and yaf_).

So, to summarize:

1) Is there a way to disable the profile option "Change Email Address"?

2) If I cannot do #1, has anyone run into any issues when users change email addresses if you are using a non-yaf membership provider?

Thanks for any suggestions.

Sponsor
mddubs
  • mddubs
  • 100% (Exalted)
  • YAF Developer
16 years ago
Yeah, this feature is on my wish-list too since I handle email and all that in my own application.

I'm pretty sure if you're using the .NET Membership provider in YAF, it will change your user's email address in membership. I haven't verified it yet so let me know if you do.

I'll add an admin option to disable it from users.


UserPostedImage 

www.bunkerhollow.com  | www.careercomputing.com 

When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )

tiger711
  • tiger711
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
16 years ago
Thank you mddubs. In fact - I just tested this (changing email and reviewing aspnet tables) on my hosted site and it did seem to all work correctly. So perhaps I will simply use this method to allow users to change their email accounts.

I had previously noted

an additional record was added to my aspnet_users table. It was the same username, but a different userid. I don't even know if this record would be used as the yaf_user record still points to the correct original provideruserkey.

Perhaps this was caused because I was using a copy of my database from my hosted site that I had restored locally. I was doing all of my testing against the local database. In any case, as you indicated, it does seem to be functioning properly when I tested on my live site.

mddubs
  • mddubs
  • 100% (Exalted)
  • YAF Developer
16 years ago
Host Settings -> Allow Email Change. Committed.
UserPostedImage 

www.bunkerhollow.com  | www.careercomputing.com 

When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )

hidden law
15 years ago
But where is it now?:?