Questions and Answers on any aspect of .NET. Now closed.
I'm sure this is just my misunderstanding so someone please disabuse me :)
In a nutshell I'm implementing a signup system where someone signs up, get's approval, then are able to log in. This requires a check at login for 3 different states. Awaiting Approval, Approved, and Not Approved, along with the appropriate actions.
I'm catching the OnLoggedIn event, but it doesn't appear to be acting the way I would have expected it to.
In particular, the Page.User variable isn't being set prior to the event firing(Page.User.Identity.Name==""). According to the documentation that I've read this particular event fires *after* authentication, so I would have expected Page.User to be set correctly.
I've verified that the event is actually firing, and I've also verified that the authentication is happening(I'm not simply mispelling the password, etc).
Ultimately all I really need to get at is the username entered into the login control, so if this behavior is intended, how can I go about retrieving the username without rolling my own login?
This topic is archived. No further replies will be accepted.Other recent topics
Powered by FogBugz