HI everyone,
I used to have a paragraph template that contained Login code blob
<!--@If Defined(Global:Extranet.UserName)--> <em>You are logged in as:</em><br /> <strong> <!--@Global:Extranet.Name--> </strong> <a href="/Admin/Public/ExtranetLogoff.aspx?ID=<!--@DwPageID-->">Logout...</a> <!--@EndIf(Global:Extranet.UserName)--> <!--@If Not Defined(Global:Extranet.UserName)--> <strong>Login</strong> <form id="login" action="Default.aspx" method="post"> <input type="hidden" name="ID" value="<!--@DwPageID-->" /> <label for="username"> Username</label> <input type="text" name="username" id="username" /> <label for="password"> Password</label> <input type="password" name="password" id="password" /> <input type="submit" value="Login" /> </form> <!--@EndIf(Global:Extranet.UserName)-->
And in the paragraph where above this normally works, I changed this code with this impersonate code blob.
<!--@If(Global:Extranet.UserID==0)-->
<h3><!--@Translate(CustomerLogin, 'Customer login')--></h3>
<div class="login-box-mode" data-login-box-mode="login">
<!--@If(Global:Extranet.UserID==0)-->
<!--@If(Server:Request.username<defined> || Server:Request.password<defined>)-->
<div class="loginbox-login-failed alert alert-error"><!--@Translate(Invalid_username_or_password, "Invalid username or password")--></div>
<!--@EndIf-->
<!--@EndIf-->
<form class="form-horizontal" method="post" onsubmit="">
<input type="hidden" name="ID" value="<!--@Global:Page.ID-->" />
<div class="control-group">
<input type="text" id="login-username" name="username" spellcheck="false" placeholder="<!--@Translate(Username, 'Username')-->" value="<!--@If(Server:Request.username<defined>)--><!--@Server:Request.username--><!--@EndIf-->"/>
</div>
<div class="control-group">
<input type="password" id="login-password" name="password" placeholder="<!--@Translate(Password, 'Password')-->" value="<!--@If(Server:Request.password<defined>)--><!--@Server:Request.password--><!--@EndIf-->"/>
</div>
<input type="submit" value="Login" />
</form>
</div>
<!--@Else-->
<!--@Translate(LoggedInAs, 'Logged in as')--> <!--@DWextranet_AccessUserUserName-->
<br />
<br />
<form method="post">
<!--@DwTemplateTags-->
<!--@If Not Defined(Global:Extranet.SecondaryUser.UserID)-->
<table border="0">
<tr>
<td><!--@Translate(SelectUserToImpersonate, 'Select user to impersonate')--></td>
</tr>
<tr>
<td>
<!--@LoopStart(DWExtranetSecondaryUsers)-->
<!--@HeaderStart--><select id="DWExtranetSecondaryUserSelector" name="DWExtranetSecondaryUserSelector"><!--@HeaderEnd-->
<option value="<!--@UserID-->"><!--@UserName--></option>
<!--@FooterStart--></select><!--@FooterEnd-->
<!--@LoopEnd(DWExtranetSecondaryUsers)-->
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" tabindex="3" value=" OK "></td>
</tr>
</table>
<!--@EndIf(Global:Extranet.SecondaryUser.UserID)-->
<!--@If Defined(Global:Extranet.SecondaryUser.UserID)-->
<h3><!--@Global:Extranet.SecondaryUser.UserName--> <!--@Translate(ImpersonatedBy, 'is impersonated by')--> <!--@DWextranet_AccessUserUserName-->.</h3>
<br />
<input type="submit" name="DwExtranetRemoveSecondaryUser" id="DwExtranetRemoveSecondaryUser" value="Stop impersonation">
<!--@EndIf(Global:Extranet.SecondaryUser.UserID)-->
<br />
<br />
<a class="btn" href="/Admin/Public/ExtranetLogoff.aspx?ID=<!--@DwPageID-->"><!--@Translate(Logout, 'Logout')--></a>
</form>
<!--@EndIf-->
I also setup corresponding settings and as instructed here: http://manual.dynamicweb-cms.com/Default.aspx?ID=7597
As a result - when I go to the page where this form is invoked - so I can login, but it shows noone as Impersonate options.
My question would be - anyone has any idea why this Could not function on standard dw 8,4,0,10?
And do I actually have to setup some of those (page properties > advanced > permissions) in order to make this work?
KInd regards,
Dmitrij