delivery server user login functionality question

68 views
Skip to first unread message

Dmitry Terner

unread,
Dec 14, 2011, 2:57:12 PM12/14/11
to reddot-c...@googlegroups.com
Hi,

Delivery server question. I have some basic login and personalization stuff going on ion one of my projects.

What I want to get is a login failed error message to display above the form. 

If login fails I want to load the last page hey were on and I do this via passing the page url in the [#request:current-page#] variable and  that works.
Then I check for login errors and if there is one I write a request variable called msg

However when on my original page with the form I try to read it its not coming up.

Full dynamnet code is below and all help is as always appreciated.


<dynaments>
    <rde-dm:user mode="login"
            user="[#request:uname#]"
            password="[#request:password#]"
            login-content="login-content.xml"
            login-fail="[#request:current-page#]"
            result-attribute="login-return-code"
            relogin="true" />

    <rde-dm:attribute mode="condition" source="request" attribute="login-return-code" op="ne" value="0" >
        <rde-dm:attribute mode="write" source="request" attribute="msg" value="Login Failed." />
    </rde-dm:attribute> 
</dynaments>

- Dmitry

Dmitry Terner

unread,
Dec 14, 2011, 3:48:21 PM12/14/11
to reddot-c...@googlegroups.com
quick update.. I made the following change to test things out and it looks like the result attribute is not being generated at all...

<dynaments>
    <rde-dm:user mode="login"
            user="[#request:uname#]"
            password="[#request:password#]"
            login-content="login-content.xml"
            result-attribute="return-code"
            login-fail="[#request:current-page#]"
            relogin="true" />

     <rde-dm:attribute mode="write" source="request" attribute="msg" value="[#return-code#nada#]" />

</dynaments>

I get the "nada" message in all instances.

any ideas?

Bunsen

unread,
Dec 17, 2011, 5:45:19 AM12/17/11
to reddot-c...@googlegroups.com

Dmitry,
Try adding in a login-success attribute and page, then attempt to access the return-code value.

--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/reddot-cms-users/-/GT6ytRyDM-gJ.
To post to this group, send email to reddot-c...@googlegroups.com.
To unsubscribe from this group, send email to reddot-cms-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.

Dmitry Terner

unread,
Dec 20, 2011, 11:20:23 AM12/20/11
to reddot-c...@googlegroups.com
Hi,

Is that a documented attribute? I can't find it in the documentation can you please give an example of the usage?

Thanks,

- Dmitry

Tim D

unread,
Jan 3, 2012, 9:49:42 AM1/3/12
to reddot-c...@googlegroups.com
Dmitry,

I believe you'll need to specify your source in your inline notation, otherwise it will go to the default source which I believe is user not request.

 <rde-dm:attribute mode="write" source="request" attribute="msg" value="[#request:return-code#nada#]" /> 

Also for v10.1 the relogin attribute takes yes|no not true.

If that doesn't work can you give more clarity on the flow of steps you desire [eg I believe you are doing this original-html>(post)>xml>(loginfails)>(include)>original-html>(display error)] and more details on some sample URLs and if things are being included how. Best of luck.

Tim
Reply all
Reply to author
Forward
0 new messages