Developer forum

Forum » CMS - Standard features » DW8 login
Andrew Mannell
Reply

We use DW’s method for logging in a user:
 
sec.ExtranetLogin(user.UserName, user.Password)
 
This method makes a wrong redirect in current user friendly setting setting are also attached.

 

sends here: http://elidel.net.dynamicweb-cms.com/neurodermitis/Default.aspx?ID=75
instead of: http://elidel.net.dynamicweb-cms.com/neurodermitis/vorwort_neurodermitis.aspx (also page ID 75?)
For some reason it adds the /neurodermitis/ which it does not understand.

This would also work! -  http://elidel.net.dynamicweb-cms.com/Default.aspx?ID=75

Screen_shot_2012-10-05_at_10.00.08_AM.png

Replies

 
Andrew Mannell
Reply
Unfortunately seems know one has any ideas :-(
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi Andrew,

I would report this as a bug, so it gets the proper attention.

Cheers,

Imar

 
Andrew Mannell
Reply
Thanks I have reported it but they say they have no idea and the people in the forum will know better.
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi Andrew,

 

If it's a bug, I think Dynamicweb needs to look at it and you may need to push them to reconsider. If they say it's by design, then you may be able to work around it using a NotificationSubscriber. Something like OnExtranetLogin might do the trick:

 

[Dynamicweb.Extensibility.Subscribe(Dynamicweb.Notifications.Standard.User.OnExtranetLogin)]
public class OnExtranetLoginObserver1 : Dynamicweb.Extensibility.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args)
{
  if (args == null)
	return;

  if (!(args is Dynamicweb.Notifications.Standard.User.OnExtranetLoginArgs))
	return;

  Dynamicweb.Notifications.Standard.User.OnExtranetLoginArgs item = (Dynamicweb.Notifications.Standard.User.OnExtranetLoginArgs)args;

  //TODO: Add code here
}

Cheers,

 

Imar

 

You must be logged in to post in the forum