Welcome Guest Search | Active Topics | Log In | Register

Changing username causes access denied Options · View
mmbianco
#1 Posted : Wednesday, September 17, 2008 7:37:04 PM
Rank: Member


Joined: 7/17/2008
Posts: 11
Location: Los Angeles, CA
Hello and thanks in advance for any help.

I have YAF integrated with my .NET 3.5 application, using my own custom membership provider and asp.net's default profile and role provider.

The integration has been successful and it is functional.

However when I went to change an existing member's username, suddenly they lost access to the forum. I went and made the username change in Yaf_Users but it did not fix.

Please, what do I need to do to allow this user to regain access?

Thanks,
Marco
test2005
#2 Posted : Thursday, September 18, 2008 7:07:30 AM

Rank: YAF MVP



Joined: 2/12/2005
Posts: 927
Location: Italy
You need to make the changes to several tables, and not just the user name, but also the unique ID value (if I'm not mistaken).

The simplest way to do what you want is create a new user, then run an update on posted content changing the userid in question. You can modify the "date created" of the user in question to maintain longevity.

.....the man in black fled across the desert..........and the gunslinger followed.....

vash
#3 Posted : Wednesday, October 01, 2008 4:07:19 PM

Rank: YAF Commander


Joined: 9/2/2008
Posts: 106
Location: Philippines
Hi,

How come the feature to change username in the previous version was removed in v1.9.3? Can we make it still available in v1.9.3?
test2005
#4 Posted : Wednesday, October 01, 2008 10:09:30 PM

Rank: YAF MVP



Joined: 2/12/2005
Posts: 927
Location: Italy
Because the default ASP.NET Membership provider does not have this ability built in. Previous versions used a YAF-internal membership system, not .NET.

Changing a user is no easy task. Simplest thing to do is create a new user, as I stated earlier.
.....the man in black fled across the desert..........and the gunslinger followed.....

vash
#5 Posted : Saturday, October 04, 2008 8:50:27 AM

Rank: YAF Commander


Joined: 9/2/2008
Posts: 106
Location: Philippines
Ah... that makes sense Cheesy Grin Thanks for explaining Very Happy
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.070 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET