Developer forum

Forum » Templates » PwToken

Reply
Hi,

I while ago the PwToken was implemented to create automatic login. Since Dw7 I can't get it to work. It is working in the engage website though.

Is this an error, or will it not be restored?

Best Regards,
Nuno

Replies

 
Reply
Hi Nuno

I'll look into it, but I don't think it's due to DW 7 because it still works i Firefox and Chrome.

// Sebastian
 
Nicolai Høeg Pedersen
Reply
PwToken should work as it always has...

You know you have to pass an encrypted string of the password along with the username?

"?Username=np&PwToken=" & Dynamicweb.Base.MD5HashToString(pass & "DwSecret")
 
Reply
Hi Guys,

It's weird. I am using the same password and in our website it does not work (www.alencastre.net), but it works with engage.dynamicweb (same browser). Any other ideias?

Best Regards,
Nuno
 
Nicolai Høeg Pedersen
Reply
No idea...

Send me the link you are using - and maybe your password.
 
Reply
Hi Nicolai,

Use it in
http://intranet.alencastre.net
username: nunoaguiar
password: sent it by e-mail

(so that someone else can keep track of things) We also changed the user password settings to encrypted since DW7. Could it be that PwToken and encrypted passwords are not compatible?

nuno
 
Nicolai Høeg Pedersen
Reply
Hi Nuno

As you wrote in your mail, you have the passwords encryptet in the user database, and that is why pwtoken does not work.

So you would have to send Dynamicweb.Base.MD5HashToString(encryptedPass & "DwSecret") into the pwtoken string.
 
Reply
Hi Nicolai,

Thanks for the info.

Nuno

 

You must be logged in to post in the forum