And of course read on the chapter of security to get an idea of how
security is implemented in Symfony.

Btw, what is the Symfony version you are using?

On Fri, Mar 6, 2009 at 11:14 PM, Sid Bachtiar <sid.bacht...@gmail.com> wrote:
> Hi,
>
> There is no actual module name 'symfony', it is caused by the default
> routing.yml (in config folder of your app).
>
> Module 'symfony' in URL is really an 'alias' of module 'default'. Look
> at the routing.yml, it'll make sense.
>
> You can not just put a loginSuccess template. It takes more than that
> to create a login form.
>
> I would recommend you to learn to install and use sfGuardPlugin. It
> takes a little learning about installing and using plugin but with
> sfGuardPlugin, you only need to install and configure it, very easy :)
>
> On Fri, Mar 6, 2009 at 11:06 PM, Lawrence Krubner
> <lkrub...@geocities.com> wrote:
>>
>>
>>
>> On Mar 6, 2:04 am, Sid Bachtiar <sid.bacht...@gmail.com> wrote:
>>> No, AFAIK there isn't default login form. You need sfGuardPlugin or
>>> build your own.
>>>
>>
>> Where does the login form go? Symfony redirects me to this URL:
>>
>> frontend_dev.php/symfony/login
>>
>> But where is the module called "symfony"?
>>
>> Symfony is redirecting me from this URL:
>>
>> frontend_dev.php/newnews/edit
>>
>> I don't want people to reach that URL unless they are logged in. So
>> symfony is correctly keeping out of that URL. But it redirects me to
>> an unknown module.
>>
>> I created a loginSuccess.php template and put in the newnews module,
>> but that had no effect.
>>
>>
>>
>>
>>
>>
>>>
>>> On Fri, Mar 6, 2009 at 7:59 PM, Lawrence Krubner <lkrub...@geocities.com> 
>>> wrote:
>>>
>>> > Check out this screenshot:
>>>
>>> >http://lawrence.sds5.com/no_login.gif
>>>
>>> > I find this odd. I've got a module I want to lock down to people who
>>> > are logged in. I've got this in the module's config/security.yml:
>>>
>>> > read:
>>> >  is_secure:   on
>>>
>>> > update:
>>> >  is_secure:   on
>>>
>>> > delete:
>>> >  is_secure:   on
>>>
>>> > edit:
>>> >  is_secure:   on
>>>
>>> > all:
>>> >  is_secure:  off
>>>
>>> > I've got this in the apps settings.yml:
>>>
>>> > all:
>>> >  .actions:
>>> >    error_404_module:       default   # To be called when a 404 error
>>> > is raised
>>> >    error_404_action:       error404  # Or when the requested URL
>>> > doesn't match any route
>>>
>>> >    login_module:           default   # To be called when a non-
>>> > authenticated user
>>> >    login_action:           login     # Tries to access a secure page
>>>
>>> >    secure_module:          default   # To be called when a user
>>> > doesn't have
>>> >    secure_action:          secure    # The credentials required for
>>> > an action
>>>
>>> > If I go to the module, I'm told the page is not public. This is
>>> > expected behavior. I then click on the link "Proceed to login". What I
>>> > get is what you see in the screenshot. It continues to tell me that
>>> > the page is not public. Shouldn't it offer me a login form? I thought
>>> > there was a default login form built into the default module?
>>>
>>> --
>>> Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
>> >>
>>
>
>
>
> --
> Blue Horn Ltd - System Development
> http://bluehorn.co.nz
>



-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to