Ticket #2578 (new defect)

Opened 7 years ago

Last modified 7 years ago

Regression: it should be possible to modify the login action title and URL in portlet_actions_user2

Reported by: madarche Owned by: gracinet
Priority: P2 Milestone: CPS 3.5.6
Component: CPS (global) Version: unspecified
Severity: normal Keywords:
Cc:

Description

There is an action, the "login" action in CPSDefault/profiles/default/actions.xml that defines the title and the URL. It should be leveraged in portlet_actions_user2.

Change History

comment:1 Changed 7 years ago by gracinet

I wasn't aware of this action.

The disturbing thing is, the login form URL is also supplied in cookie_crumbler (and used for automatic redirection). That makes two ways to supply the same information, with a possible divergence, that can be considered harmful and sometimes useful.

Do you know what happens with setups without cookie_crumbler ?

Out of curiosity, why is this a regression ?

comment:2 Changed 7 years ago by gracinet

Ah, I see, (read the code) this Login action used to be displayed among the others and had previously no special meaning, while the so-called 3.5 version produces a hardcoded login button.

Note that the current behaviour also implies that the user actions aren't displayed to anonymous users. In other words, there can't be a 'user' action for anonymous. Well, people can make different versions of this portlet if they have special needs.

That shouldn't be too hard to fix : find the 'login' action within actionitems and use it A first & dirty version can maybe even assume that 'login' will be in that case the only action.

Note: See TracTickets for help on using tickets.