Developer forum

Forum » Development » LOGIN MODULE
Andrew Mannell
Reply

We have created several custom modules for secure logins and have problems with the DW8 API for Extranet login.
The system just will not login correctly, we feel it is a massive bug in the system does anyone have any ideas.

 

All DW8 version we use the following login and error code:

 

WriteDebug("logging in as {0}", user.UserName);
sec.ExtranetLogin(user.UserName, user.Password);
sec = new Security();
WriteDebug("logged in as {0}, security logged property = {1}", user.UserName, sec.UserLoggedIn);

 

 

[11/29/2012 1:38:03 PM]:    success page called: http://www.kom-design.de/Default.aspx?ID=493&doccheckkey=KomDoc2012&dc_timestamp=1354192683

[11/29/2012 1:38:03 PM]:    free version key='KomDoc2012', key from request='KomDoc2012', result=True

[11/29/2012 1:38:04 PM]:    logging in as kom_med

[11/29/2012 1:38:04 PM]:    logged in as kom_med, security logged property = False

[11/29/2012 1:38:04 PM]:    redirect to success url: /Default.aspx?ID=493

[11/29/2012 1:38:04 PM]:    success page called: http://www.kom-design.de/Default.aspx?ID=493

[11/29/2012 1:38:04 PM]:    free version key='KomDoc2012', key from request='', result=False

 

***** It seems to login and try and login again without the parameters &doccheckkey=kom2012*****

 

Any ideas what is with the login API please!


Replies

 
Morten Bengtson
Reply

Hi Andrew,

 

Did you import the users or create them manually in User Management? You need to make sure that the username is unique, password length is not 32, user is active and user is assigned one or more group relations.

 

To help with debugging the issue, you can create a NotificationSubscriber and subscribe to the following login notifications...

 

Dynamicweb.Notifications.Standard.User.OnExtranetLogin

Dynamicweb.Notifications.Standard.User.OnExtranetLoginFailed

 

/Morten

 

 

You must be logged in to post in the forum