Custom Authentcation via Login Control

Vote:
 

Hi,

I am running some custom authentication code within the standard .net login control.

I have the code being called correctly and the user is validating correctly via:

Membership.ValidateUser(txtUserName.Text, txtPassword.Text)

From this point I want to retrieve a custom EPiServerProfile property e.g.

EPiServerProfile.Current["CustomerID"].

My question is, how do I associate the 2 when within the

<asp:Login onauthenticate event

Thanks a lot

#31613
Aug 04, 2009 12:45
Vote:
 

I'm not sure I understand the question, but I interpret it as a desire to get a value from the EPiServerProfile of the user trying to log on? If the eventargs at hand doesn't include the username, you can check the UserName property of the Login control. The call EPiServerProfile.Get with that username.

#31614
Aug 04, 2009 12:56
Vote:
 

Hi Magnus,

Ha ha, for some reason I must have missed that in the sdk.

Thanks a lot

 

#31616
Aug 04, 2009 14:46
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.