Hi Christian,

The HTML Form from my first post will produce a request to:
http://{currentpage}?lenya.usecase=login&lenya.step=login&username=solprovider&password=mypassword

That will login the user.  The default response is in the global sitemap.xmap:
     <map:match type="usecase" pattern="login">
       <map:match type="step" pattern="login">
         <map:act type="authenticator">
           <map:redirect-to uri="{request:requestURI}" session="true"/>
         </map:act>
         <map:redirect-to
uri="{request:requestURI}?lenya.usecase=login&amp;lenya.step=showscreen&amp;status=failed"
session="true"/>
       </map:match>
     </map:match>

This redirects to the current page without a querystring.

--
We highjacked your thread to discuss the difference between using GET
and POST methods for the login.  Please ignore those posts until you
have the login working as you want.  Then you can decide if you want
to switch to using the POST method.  (I think using POST is a good
idea, but I am playing devil's advocate that it does not matter much.)

solprovider

On 5/3/07, Christian Hoofe <[EMAIL PROTECTED]> wrote:
Thank you very much for your answers. I read this message with the POSTs
discussion and used this.

My problem is that I want to protect a subtree in a site with the access control
of the system.

My problem is the call

xyz.html?lenya.usecase=login&lenya.step=showscreen

which leads to the normal lenya Login screen (via .../lenya/xslt/ac/login.xsl).
I want to replace this with a form on a page integrated into the site design or
a popup window.

Any ideas?

Thanks, Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to