umbLogin.ascs usage Options
meandrik
Posted: Monday, December 01, 2008 2:25:06 PM
Rank: Newbie

Joined: 11/28/2008
Posts: 6
Location: Ukraine
Hi

How can I set a text to be displayed after users enters incorrect login or password. At this moment nothing is whown. Does this control have this possibility at all? If not, can you give me a short description about how to write own login control, or some links about it.

Thanks
Richard
Posted: Monday, December 01, 2008 4:49:15 PM
Rank: Enthusiast

Joined: 9/7/2007
Posts: 27
Location: UK
There is an ErrorText property, and this text is displayed if username or password are incorrect. But it should have a default value though, looking at the source that we use it is "Incorrect username or password please try again.".

To change the message, you would need to define a parameter for the macro and pass in your new text.
meandrik
Posted: Tuesday, December 02, 2008 10:16:43 AM
Rank: Newbie

Joined: 11/28/2008
Posts: 6
Location: Ukraine
Thanks, its right solution!!! But now, when I've made own component, I have another problem. After user log in, he can't log out. It's strange because I've used code from here umbLogin. Moreover I've added the following code to logout functionality:

Code:

     protected void LinkButtonLogout_Click(object sender, EventArgs e)
    {
        Member.ClearMemberFromClient(Member.GetCurrentMember().Id);
        Member.RemoveMemberFromCache(Member.GetCurrentMember().Id);
        //clear all, just in case
        Member.CachedMembers().Clear();
        Response.Redirect(requestHandler.cleanUrl(), true);
    }


And it doesn't help Think . What should I do??
Users browsing this topic
Guest


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.