On 07.02.2011 21:32, Johannes wrote:
> You should simply overwrite the password directly instead of using a
> parameter.

Which means I'd have to have 5 lines redefining my entire user with
roles etc in the dev config. Which means if it changes in the base file
the dev one will be out of date. I really think we can do better than
that. The way it works atm parameters are kinda useless.

Cheers

> On 7 Feb., 17:32, Jordi Boggiano <[email protected]> wrote:
>> Heya,
>>
>> I hit another issue today that is imo completely blocking:
>>
>> I define a user with a fixed password in my config.yml (I skipped some
>> bits of the security config for conciseness):
>>
>> # config.yml
>> parameters:
>>     admin.password: securepassword
>>
>> security.config:
>>     providers:
>>         main:
>>             users:
>>                 admin: { password: %admin.password%, roles: [] }
>>
>> ####
>>
>> Now in development I don't want to bother with my secure password, and I
>> like to have admin/admin, so I tried to redefine the parameter in
>> config_dev.yml:
>>
>> # config_dev.yml
>> parameters:
>>     admin.password: admin
>>
>> ####
>>
>> That does not work. Somehow the extension is loaded before the
>> parameters of the various files are merged.
>>
>> I'm not sure how to fix it, I didn't spend much time investigating, but
>> I strongly believe it should be fixed one way or the other. Or is this
>> normal and everyone is happy?
>>
>> Cheers
>>
>> --
>> Jordi Boggiano
>> @seldaek ::http://seld.be/
> 


-- 
Jordi Boggiano
@seldaek :: http://seld.be/

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to