Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedCustom Membership Provider and "Edit Mode"Custom Membership Provider and "Edit Mode"
Previous
 
Next
New Post
4/22/2013 6:35 AM
 
Hello everybody,

I've downloaded the source code package of DotNetNuke 7 in order to create a custom membership provider as written in an article of Henry Kenuam. I haven't really a problem to create such membership provider but I encounter a problem which is when a user is logged in as a super user, he can't close the "Edit Mode".

It seems the "UserMode" property is set to "Edit" by default which is not the case while using the default membership provider (AspNetMembershipProvider). Am I forgetting something in the implementation of my membership provider?

Here is an excerpt from that provider:

public override UserInfo GetUserByUserName(int portalId, string username)
{
    UserInfo user = new UserInfo();

    user.FirstName = "Robert";
    user.LastName = "Dupond";
    user.DisplayName = "Robert Dupond";
    user.Username = "rdupond";
    user.UserID = 29;
    user.IsSuperUser = true;

    return user;
}

The data above is just there to test the provider. It works as it logs me as "Robert Dupond" and I have the admin rights but it is impossible for me to close the "Edit Mode".

Can anyone tell me what I'm doing wrong?

Thanks in advance!
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedCustom Membership Provider and "Edit Mode"Custom Membership Provider and "Edit Mode"


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out