[symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Manu
I checked out the plugin, it seems a little complicated; the edit user page sends an email using Zend mail... How come editing your profile isn't a part of sfDoctrineGuardPlugin ? Surely I cannot be the first one to want that functionality on their website ! -- If you want to report a

Re: [symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Stéphane
This plugin have modules to edit user permissions and groups, no ? Regards, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Feb 7, 2011 at 11:51 AM, Manu emmanuel.parf...@gmail.com wrote: I checked out

[symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Manu
Yes. But logged in users shouldn't be able to change their permissions, only their password, email, Profile, etc. -- 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

Re: [symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread stof
On Mon, 7 Feb 2011 02:51:28 -0800 (PST), Manu emmanuel.parf...@gmail.com wrote: I checked out the plugin, it seems a little complicated; the edit user page sends an email using Zend mail... How come editing your profile isn't a part of sfDoctrineGuardPlugin ? Surely I cannot be the first one

[symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Manu
Ok, then let's forget about the Profile for the moment. How can I let users change their password, login and email ? -- 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

Re: [symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Gareth McCumskey
Erm. Create a form that once they are logged in they can edit and when submitted gets saved to the database? On Mon, Feb 7, 2011 at 1:01 PM, Manu emmanuel.parf...@gmail.com wrote: Ok, then let's forget about the Profile for the moment. How can I let users change their password, login and

[symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Manu
I'll have to rewrite sfDoctrineGuard's hashing methods and validators -- 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 users group. To post to this

Re: [symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread stof
On Mon, 7 Feb 2011 04:22:44 -0800 (PST), Manu emmanuel.parf...@gmail.com wrote: I'll have to rewrite sfDoctrineGuard's hashing methods and validators You can also extend the form provided in the plugin and unsetting the fields you don't want. -- Christophe | Stof -- If you want to report a

[symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Manu
Yes, that's what I tried. But on saving the permissions and is_active fields are saved to blank values -- 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

[symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Manu
class mysfGuardUserAdminForm extends PluginsfGuardUserForm { public function configure() { parent::configure(); $authorForm = new authorForm($this-object-Author); unset($authorForm['id'], $authorForm['sf_guard_user_id'], $authorForm['slug']); $this-embedForm('Author',

[symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Manu
Now the form won't validate, saying that created_at and updated_at are required... ! Oo -- 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 users group. To

[symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Manu
Did I mention that it's my first symfony project ? :) -- 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 users group. To post to this group, send email to

[symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Grzegorz Śliwiński
Yes, original does require Zend mail, but that's why I created fork, which uses Swift mailer, which is included in symfony On Feb 7, 11:51 am, Manu emmanuel.parf...@gmail.com wrote: I checked out the plugin, it seems a little complicated; the edit user page sends an email using Zend mail...

[symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Matt Robinson
I'd recommend using $this-useFields() instead of unsetting the fields you don't want. It protects you from accidentally blanking new fields if you forget to unset them across all forms for that object, and as a bonus you can pass an argument to it to set the order that the widgets appear. On Feb

[symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Manu
class mysfGuardUserAdminForm extends PluginsfGuardUserForm does not validate, saying that created_at and updated_at are required. class mysfGuardUserAdminForm extends BasesfGuardUserAdminForm validates, but sets the values it doesn't receive to null -- If you want to report a vulnerability

[symfony-users] Doctrine many to many relationship Doctrine_Record delete override.

2011-02-07 Thread Thomas D.
Hello, I have some trouble with a project I'm building with symfony 1.4 doctrine 1.2. I have a Page and a Tag model. They're bound through a PageTag refClass in a m2m relationship. Since the tag class is also bound to several other models, I'm trying to keep track of a tag's associations into

[symfony-users] Skip autoloading in symfony

2011-02-07 Thread Imran
Hi visitors, I have some class files in /app/my_app/lib/. Symfony load the files (*.php) automatically. Is there any way to skip the particular class files from autoloading? Thanks -Imran -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Re: Embed sfGuardUserAdmin yet permissions are not saved

2011-02-07 Thread kalooni
Hi I am facing the same issue. As you I did not find any nice solution, so I have modified the action.class.php of my admin module and edit the processForm as a workaround. $permissionsArray = $request-getParameter($form-getName()); $pArray = $permissionsArray['Compte']['permissions_list'];

[symfony-users] Re: [Symfony2] InvalidArgumentException: There is no extension able to load the configuration for security.config

2011-02-07 Thread Justin Fortier
Got it working, but now I'm experiencing user persistence problems. Seems every link just redirects me to the login screen after I've already logged in. When the web profiler interrupts the forward I get an Anonymous user, and then when I get back to the login screen and it has my proper user in

[symfony-users] data-load problem with i18n fixture without english

2011-02-07 Thread Alejandro Hurtado
hi, data-load in a non-english application with this fixture create a blank record for 'en' in the table and give this error: 062 Duplicate entry 'en-' for key Is the english always required ?? Article: actAs: Timestampable: ~ I18n: fields: [ title ] actAs:

Re: [symfony-users] Re: [Symfony2] InvalidArgumentException: There is no extension able to load the configuration for security.config

2011-02-07 Thread stof
On Mon, 7 Feb 2011 07:43:49 -0800 (PST), Justin Fortier justfort...@gmail.com wrote: Got it working, but now I'm experiencing user persistence problems. Seems every link just redirects me to the login screen after I've already logged in. When the web profiler interrupts the forward I get an

Re: [symfony-users] Skip autoloading in symfony

2011-02-07 Thread Justen Doherty
load them into the action as you need them :) On Mon, Feb 7, 2011 at 8:20 AM, Imran im...@allies.co.in wrote: Hi visitors, I have some class files in /app/my_app/lib/. Symfony load the files (*.php) automatically. Is there any way to skip the particular class files from autoloading?

[symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Manu
My head hurts. Everyone seem to say that it's easy to do, but I can't find one tutorial on it, nor anyone to explain it to me. :( Please help, the profile-editing-thing is the last thing I'm missing on my blog. -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Re: [Symfony2] InvalidArgumentException: There is no extension able to load the configuration for security.config

2011-02-07 Thread Justin Fortier
I'm using two firewalls already. Everything was running really well until the recent updates where they moved the security bundle, and moved the vendor location. Once again, thanks for all your help it really is appreciated! Here's a look at my security.config (obviously plaintext is for testing

Re: [symfony-users] Re: How to let my users edit their password/profile ? [sfDoctrineGuardPlugin]

2011-02-07 Thread Alex Pilon
Read the source code, you basically need to make use a form that inherits one of the sfGuardUser forms that includes the password field on it. The source code is highly self documenting. Reading the source code is the best way to figure out simple problems like this. On Mon, Feb 7, 2011 at 11:23,

[symfony-users] [Symfony2] Howto use the Security component in vPR6?

2011-02-07 Thread Frenck
I've upgraded my development tree from vPR5 to vPR6. Now security is broken in my application. I've got this in my config.yml: security.config: encoders: Symfony\Component\Security\User\AccountInterface: algorithm: plaintext providers: main: users: frenck: {

Re: [symfony-users] [Symfony2] Howto use the Security component in vPR6?

2011-02-07 Thread stof
On Mon, 7 Feb 2011 08:06:23 -0800 (PST), Frenck fre...@gmail.com wrote: My application throws: InvalidArgumentException: There is no extension able to load the configuration for security.config (in /var/www/PostOfficeSymfony/ postoffice/config/security.yml). in

[symfony-users] Re: Skip autoloading in symfony

2011-02-07 Thread Gabriel Petchesi
You should be able to customize the autoload.yml to add an exclude dir and place php files in those dirs. See more information here: http://www.symfony-project.org/reference/1_4/en/14-Other-Configuration-Files gabriel -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] Trying to send emails

2011-02-07 Thread Javier Garcia
Hi, I'm trying to send emails using this code: var_dump($this-getMailer()-composeAndSend( //this outputs '0' 'f...@example.com', 'j.gar...@jander.eu', 'Subject', 'Body' )); The factories configuration is this (I have the same configuration in my

[symfony-users] Form problems

2011-02-07 Thread StephaneQ
Hello, I have 2 problems with a custom form, which is not based on an object. I'm using sf 1.4.8 First problem is with a validator. I have an input text field which should contains a string which looks like a date. The format must be dd-mm- (for example 07-02-2011). Here is the code where I

[symfony-users] Symfony2 ACL and roles

2011-02-07 Thread phil0
Hello there How does the Symfony 2 ACL and roles interact? I've given my users a number of ACL entries to work with. However, I would like ROLE_ADMIN to have all permissions, without needing to add ACL entries for each admin user for each object. How is this done? -- If you want to report a

Re: [symfony-users] Symfony2 ACL and roles

2011-02-07 Thread Christophe COEVOET
Le 07/02/2011 18:42, phil0 a écrit : Hello there How does the Symfony 2 ACL and roles interact? I've given my users a number of ACL entries to work with. However, I would like ROLE_ADMIN to have all permissions, without needing to add ACL entries for each admin user for each object. How is

Re: [symfony-users] Symfony2 ACL and roles

2011-02-07 Thread phil0
Ah that seems reasonable. Where would I put that code? -- 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 users group. To post to this group, send email

[symfony-users] Re: [Symfony2] Howto use the Security component in vPR6?

2011-02-07 Thread Justin Fortier
Hey Frenck, I had problems with this too. I moved my security.config into my config.yml, and that seemed to alleviate some problems. I also enabled the SecurityBundle in my AppKernel.php ( new Symfony\Bundle \SecurityBundle\SecurityBundle() ). Now it at least recognizes the security bundle, but

Re: [symfony-users] Symfony2 ACL and roles

2011-02-07 Thread Christophe COEVOET
Le 07/02/2011 18:49, phil0 a écrit : Ah that seems reasonable. Where would I put that code? In the same place where you put your other ACL entries. You still have to define an entry for each domain object (as each domain object has its own ACE) but a single entry will do the work for all

Re: [symfony-users] Symfony2 ACL and roles

2011-02-07 Thread phil0
Hmm that sounds weird. So there is no way of adding a super admin? Perhaps overriding the security context vote method would do the trick? -- 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

Re: [symfony-users] Re: [Symfony2] Howto use the Security component in vPR6?

2011-02-07 Thread Christophe COEVOET
Le 07/02/2011 18:49, Justin Fortier a écrit : Hey Frenck, I had problems with this too. I moved my security.config into my config.yml, and that seemed to alleviate some problems. I also enabled the SecurityBundle in my AppKernel.php ( new Symfony\Bundle \SecurityBundle\SecurityBundle() ). there

[symfony-users] Question about sfOutputEscaperArrayDecorator

2011-02-07 Thread Javier Garcia
Hi, when i do a sfGuardUserPeer::doSelect(new Criteria()), i get an object like this: object(sfOutputEscaperArrayDecorator)[114] private 'count' = int 1 protected 'value' = array 0 = object(sfGuardUser)[108] protected 'profile' = null protected 'groups'

[symfony-users] [Symfony2] How to create Forms in PR6?

2011-02-07 Thread Nikita Korotaev
After updating to PR6, and reading a new piece of documentation about forms: http://docs.symfony-reloaded.org/guides/forms/overview.html I've made a separate class for my Registration form(Previously everything was in signupController). However I'm struggling to understand the role of

[symfony-users] Re: InvalidArgumentException: There is no extension able to load the configuration for security.config

2011-02-07 Thread Justin Fortier
Ok, I've disabled the public firewall, and that seems to have done it. Originally I needed the second firewall as the main one wouldn't let me see login pages, and they seemed to work fine together in PR5. I guess some things have tightened up for the better, but have caused me some woes along the

Re: [symfony-users] [Symfony2] How to create Forms in PR6?

2011-02-07 Thread Christophe COEVOET
Le 07/02/2011 19:18, Nikita Korotaev a écrit : After updating to PR6, and reading a new piece of documentation about forms: http://docs.symfony-reloaded.org/guides/forms/overview.html I've made a separate class for my Registration form(Previously everything was in signupController). However

Re: [symfony-users] Symfony2 ACL and roles

2011-02-07 Thread Johannes Schmitt
You can write your own security voter to do this. There is no documentation on this yet as it is quite advanced, but you can use the built-in security voters as a starting point; overriding SecurityContext-vote() is a bad idea... Kind regards, Johannes On Mon, Feb 7, 2011 at 7:05 PM, phil0

[symfony-users] Re: [Symfony2] Howto use the Security component in vPR6?

2011-02-07 Thread Frenck
Thx Christophe, That was indeed the solution. Added: new Symfony\Bundle\SecurityBundle\SecurityBundle() To my registerBundles() function in my kernel. ../Frenck On 7 feb, 17:52, stof s...@notk.org wrote: On Mon, 7 Feb 2011 08:06:23 -0800 (PST), Frenck fre...@gmail.com wrote: My application

[symfony-users] [Symfony2] The CSRF token is invalid

2011-02-07 Thread Ed
I'm new here so please excuse my lack of etique knowledge. I build a pretty big site using PR5, and I'm trying to refactor the code into the new PR6 formats - mainly renaming template files, redoing the forms etc. I've got it 99% working, but for some reason I can't submit any forms. It keeps

Re: [symfony-users] [Symfony2] The CSRF token is invalid

2011-02-07 Thread Bernhard Schussek
Can you show the code of your form and the template please? That sounds strange. Bernhard -- Software Architect Engineer Blog: http://webmozarts.com Twitter: http://twitter.com/webmozart -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] [Symfony2] How to create Forms in PR6?

2011-02-07 Thread Bernhard Schussek
Hi Nikita, Yes, your field definitions go into configure(). If you want to group fields, just use a Form as well - FieldGroup doesn't exist anymore. There are two different ways to construct a form: 1) new Form(name, options) - this is for forms where you want to pass all options yourself 2)

Re: [symfony-users] [Symfony 2] Call to a member function on a non object after updating vendors

2011-02-07 Thread Christophe COEVOET
Le 07/02/2011 20:57, ebloa a écrit : Hi After updating my Symfony 2 vendors I receive the following error on every request: Fatal error: Call to a member function set() on a non-object in /[...]/ vendor/symfony/src/Symfony/Component/Security/Http/Firewall/ ExceptionListener.php on line 165 It

[symfony-users] Re: [Symfony2] The CSRF token is invalid

2011-02-07 Thread Ed
Sure, I've tried all sorts of combinations to no avail. At the moment my createAction (which generates/receives the form is) public function createAction() { // Show the form for creating a new deck $userRequest = new NewUserRequest(); $form =

[symfony-users] Any way to rename actions.class.php

2011-02-07 Thread George M. Harkin
When editing our module's actions.php i run into the issue of a 20 actions.class.php files. Is it possible to rename it to module_name.actions.class.php or something else? This a feature request? Thanks! -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] Any way to rename actions.class.php

2011-02-07 Thread Stéphane
I don't get it. What is the problem ? Do you know you can break your actions methods into individual classes ? Is it this ? Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Feb 7, 2011 at 5:53 PM, George

Re: [symfony-users] Symfony2 ACL and roles

2011-02-07 Thread phil0
Ok, what I've done now is: I created a new DI service into which the SecurityContext is injected. This service has a method called vote() that takes the same parameters as SecurityContext::vote(), but this method calls SecurityContext::vote() with the admin role. If the role doesn't have

Re: [symfony-users] Symfony2 ACL and roles

2011-02-07 Thread Johannes Schmitt
As I said, this is a bad idea nonetheless... It might be working now, but it will only cause you problems further down the road. It's better to go with the proper solution I mentioned before. Kind regards, Johannes On Mon, Feb 7, 2011 at 10:05 PM, phil0 fis...@gmail.com wrote: Ok, what I've

Re: [symfony-users] Any way to rename actions.class.php

2011-02-07 Thread Alex Pilon
I think he means.. he has say 10 modules each with an actions.class.php. When these are all open in an editor, the file name shows actions.class.php, and so it becomes confusing what file you are editing and you have to click like 5 tabs to find the actions file you are looking for. So applying

Re: [symfony-users] Any way to rename actions.class.php

2011-02-07 Thread Stéphane
Ah, thank you :) On Eclipse, I'm using to Ctrl+Shift+T for Type, then typing the name of the file. Keeping hands on the keyboard, or playing with Ctrl+PageUp or Down to navigate between open editors (I'm on ubuntu, dunno behavior on other OSes). Anyway, how to change this ? Look at the

Re: [symfony-users] Question about sfOutputEscaperArrayDecorator

2011-02-07 Thread Gábor Fási
It is useful to prevent html injection (and a few similar) attacks. Imagine the following: someone registers as h1username/h1, and then you create a user list page. If you'd simply output the name, his name would be quite big, but with symfony's output escaping simply echoing `$user-username` is

Re: [symfony-users] Form problems

2011-02-07 Thread Gábor Fási
Try using sfValidatorDate. Here's a working example (you'll need to adapt the format): new sfValidatorDate(array(date_format = '~(?Pyear\d{4})\.(?Pmonth\d{2})\.(?Pday\d{2})~'))); On Mon, Feb 7, 2011 at 18:41, StephaneQ stephanequan...@gmail.com wrote: Hello, I have 2 problems with a custom

[symfony-users] Re: The CSRF token is invalid

2011-02-07 Thread Damien Filiatrault
I am having the EXACT same problem. -- 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 users group. To post to this group, send email to