[TYPO3-dev] TYPO3_PROCEED_IF_NO_USER and ajax.php

Christoph Koehler christoph.koehler at gmail.com
Mon Jul 28 20:15:10 CEST 2008


In article
<mailman.1.1217268200.12207.typo3-dev at lists.netfielders.de>Christoph
Koehler <christoph.koehler at gmail.com> wrote:
>  Hello,

>  For the new backend login stuff [1] I need to set
> TYPO3_PROCEED_IF_NO_USER = 1, or else it will fail if the login
> information is wrong. Setting this to true across the board in
> ajax.php may not be desired, since ajax requests can then be
> madewithout a valid BE user.

>  Does anyone have a better idea, or know enough to say that this
> won'tbe a problem?

One idea would be to define another section in the typo3_conf_vars.
Right now, the ajaxIDs are defined in [BE][AJAX], maybe we could
define something like [BE][AJAX_NO_LOGIN] and add ajaxids to it that
don't require a login. Then, in ajax.php, we can get the ajaxid, see
if it doesn't require a login, if it doesn't, define
TYPO3_PROCEED_IF_NO_USER, if not -by default- don't define it.

Sound good?

Christoph

-- 
I'm using an evaluation license of nemo since 412 days.
You should really try it!
http://www.malcom-mac.com/nemo





More information about the TYPO3-dev mailing list