Developer forum

Forum » Templates » Problems with Extended Extranet

Problems with Extended Extranet


Reply

On the following solution I use the Extended Extranet:

 

http://coachcrew.dk/

 

However, when I try to log in I receive a server error.

 

Why do this error occur?

 

I can see that the following tag is not replaced with a value:

 

<!--@LoginFormAction-->

 

That seems a bit weird to me.


Replies

 
Reply

This tag is only merged when used on a page that is extranet protected. If you submit username=uid&password=pwd to log users on, so if you just set the action attribute of the form to blank(leave it out), the form will post the login information to the current page.

 
Nicolai Høeg Pedersen
Reply
michael@vestjyskmarketing.dk wrote:

On the following solution I use the Extended Extranet:

 

http://coachcrew.dk/

 

However, when I try to log in I receive a server error.

 

Why do this error occur?

 

I can see that the following tag is not replaced with a value:

 

<!--@LoginFormAction-->

 

That seems a bit weird to me.


 

It is because you have taken the Login template and placed it in a context that is not applied template tags. So replace LoginFormAction tag with this: Default.aspx?ID=<!--@Global:Page.ID-->

 

 
Reply

Oh well that explains something :)

 

Do I have to send the user to a page where the Extranet has been applied?

 

I've tried to send the user to another page which is not protected. It seems that the username and password is not remembered og stored by the system.

 
Nicolai Høeg Pedersen
Reply

All pages will validate a login. Username and password are only stored in a cookie it the template has some checkboxes set. See i.e. Files/Templates/Extranet/Login_dk_password.html

 

From a template, you can check wether a user is logged in - see this example:

http://template.dynamicweb.dk/TemplateTags/Dynamicweb-template-tags/General-tags/If/else-tags.aspx

 

 
Reply
michael@vestjyskmarketing.dk wrote:

Oh well that explains something :)

 

Do I have to send the user to a page where the Extranet has been applied?

 

I've tried to send the user to another page which is not protected. It seems that the username and password is not remembered og stored by the system.


 

No, this is enough:

<form name="Login" method="get">

    <input type="text" name="username" /><br />

    <input type="password" name="password" /><br />

    <input type="submit" value="Login" />

    <!-- You may have redirect on login set for some users. In that case to avoid redirect, use the following -->

    <input type="hidden" name="CancelRedirect" value="1" />

</form>

 
Reply

Thank you - both of you.

 

I now redirect the user to a new page which should tell if they are logged in or not.

 

However, the user is not approved.

 

Instead they can retype both username and password. Afterwards they get approved.

 

I find it a bit weird.

 
Reply

I've solved the problem ;)

 
Reply

Excellent:)

 
Reply

And thanks to both of you :)

 

You must be logged in to post in the forum