[symfony-users] Re: sfGuard permissions not working with sfPDOSessionStorage

2011-06-18 Thread Mike Serendra
Anyone? :) On Jun 14, 12:04 pm, tigana.flu...@gmail.com wrote: > Hi all. When I changed my session storage class to sfPDOSessionStorage, > permissions didn't work anymore. Do I need to do something other than > creating the table and configuring factories.yml for these to go back to > normal? The

[symfony-users] Re: sfGuard and multisite authentication

2011-01-27 Thread lambert_b
Hi Introvert, Actually, I am building one, using it for a few applications (or actually, rebuilding it from scratch, as there are is a lot to it) Want to publish the plugin soon, will be jvSaasPlugin, from Software as a Service. It is build on top of sfDoctrineGuardPlugin (trunk) and sfDoctrineAp

Re: [symfony-users] Re: sfGuard and multisite authentication

2011-01-25 Thread Justen Doherty
Hi Introvert, could you not create a user admin user group that is exempt from using the site_id in your SQL queries.. On Tue, Jan 25, 2011 at 2:30 PM, Gabriel Petchesi wrote: > This is beyond what you can do with sfGuardUser, search on google for SSO > (Single Sign On) technologies: > http://en

[symfony-users] Re: sfGuard and multisite authentication

2011-01-25 Thread Gabriel Petchesi
This is beyond what you can do with sfGuardUser, search on google for SSO (Single Sign On) technologies: http://en.wikipedia.org/wiki/List_of_single_sign-on_implementations If you want to build it yourself you could do something like this: 1. User logins to site A 2. User gets first page from si

[symfony-users] Re: sfGuard/sfApply username/email are case sensitive? oh no

2010-12-24 Thread Gabriel Petchesi
Check the database collation: http://dev.mysql.com/doc/refman/5.1/en/charset-collation-names.html Some of the collations are case sensitive, others not: utf8_general_ci vs. utf8_general_cs Maybe this fixes the problem. gabriel -- If you want to report a vulnerability issue on symfony, ple

[symfony-users] Re: sfGuard default culture for a user

2010-07-21 Thread Tom Ptacnik
I would do that somewhere in the login process of the user. just call getUser()->setCulture($culture); where $culture is readed from the user profile. On 19 čnc, 20:16, Tomasz Ignatiuk wrote: > Hi > > If I add a profile to a user with some information, also a language > for a user, how to

[symfony-users] Re: sfGuard - different usertypes?

2009-11-26 Thread Timmipetit
If you're using Doctrine, you could use inheritance. For example using column aggregation. On Nov 26, 5:43 am, Richtermeister wrote: > Hi all, > > I'm quite familiar with sfGuard, but there's one thing I've never > figured out right. > I have to build an application with quite a few different use

Re: [symfony-users] Re: sfGuard - different usertypes?

2009-11-26 Thread Benjamin Grandfond
You can also create sfGuardGroup for each type of user you have and set the sfGuardUserGroup to the type of user your are creating. 2009/11/26 halfer > > I have to build an application with quite a few different user types - > > admins, members, affiliates, sales people, and all of these types w

[symfony-users] Re: sfGuard - different usertypes?

2009-11-26 Thread halfer
> I have to build an application with quite a few different user types - > admins, members, affiliates, sales people, and all of these types will > use different applications within the project. Now, of course I'd like > to use sfGuard for this, but I'm struggling with how to administer > these use

Re: [symfony-users] Re: sfGuard with several database connections

2009-11-23 Thread Alexandru-Emil Lupu
There are some several places in sfGuardPlugin where the $con parameter is ignored ... I have uploaded a patch with several fixes, but it still need to apply those patches... On Mon, Nov 23, 2009 at 3:25 PM, axel at wrote: > Found an easier solution for the problem by adding > > connection: xyz

[symfony-users] Re: sfGuard with several database connections

2009-11-23 Thread axel at
Found an easier solution for the problem by adding connection: xyz to all model definitions in to the plugins/sfDoctrineGuardPlugin/config/doctrine/schema.yml: eg: sfGuardGroup: connection: xyz On 23 Nov., 13:57, Gareth McCumskey wrote: > The way I would do this in Propel instead is in m

[symfony-users] Re: sfGuard at application environment level

2009-10-23 Thread Martin Settle
I've done all of these things. To be concise: sfGuard is installed and works fine on the module/action level. The whole application can be secured using is_secure, which means any action requires a successful login. What I need is to be able to say that this whole environment (prod) requires a

[symfony-users] Re: sfGuard at application environment level

2009-10-22 Thread david
Check you've enabled the modules in your settings.yml - you should have: sfGuardAuth in your settings -> all:-> .settings:-> enabled_modules On Thu, 22 Oct 2009 12:59:00 +0200, pcummins wrote: > > Did you follow all of the steps in the install guide? > > Doctrine version is here: > http:

[symfony-users] Re: sfGuard at application environment level

2009-10-22 Thread pcummins
Did you follow all of the steps in the install guide? Doctrine version is here: http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin Lots of people miss the part about changing the myUser class, and of course don't forget to 'symfony cc' On Oct 21, 3:02 pm, Martin Settle wrote: > Sorr

[symfony-users] Re: sfGuard at application environment level

2009-10-21 Thread Martin Settle
Sorry... that was just a typo in my e-mail... I'm programming in a vmware machine that I can't easily cut and paste from. The credentials: backend doesn't seem to take effect -- I've even tried removing the default section. Marti 2009/10/21 david : > > Try dropping one of the l's from: > >>

[symfony-users] Re: sfGuard at application environment level

2009-10-21 Thread david
Try dropping one of the l's from: > defaullt: > is_secure: on On Wed, 21 Oct 2009 20:48:03 +0200, Martin Settle wrote: > > Hi all. > > I'm about to start parallel-processing on a symfony database. I'd > like to be able to give people the opportunity to log in and play with > the system in

[symfony-users] Re: sfGuard "remember me" does not quite work

2009-10-20 Thread Gábor Fási
It does seem to be a bug that exists in the propel version as well. On Sat, Oct 17, 2009 at 21:01, HiDDeN wrote: > > But why is the filter storing the IP if it is not using it to > authenticate the user? > > > On 11 oct, 11:06, Alexandru-Emil Lupu wrote: >> use just the cookie ... not the ip it

[symfony-users] Re: sfGuard "remember me" does not quite work

2009-10-20 Thread HiDDeN
But why is the filter storing the IP if it is not using it to authenticate the user? On 11 oct, 11:06, Alexandru-Emil Lupu wrote: > use just the cookie ... not the ip itsself ... > > On Fri, Oct 9, 2009 at 5:46 PM, Charles Bernard > wrote: > > > > > Hi there, > > > I’m concerned about this IP

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-14 Thread AJStoneham
If one had to write a migration for sfGuardUser or some inherited form of it. How would this issue affect the implementation. With best regards, Alex Stoneham On Oct 14, 1:55 am, Matt Robinson wrote: > On Oct 13, 3:13 pm, Pablo Godel wrote: > > > I am using sfDoctrineGuard plugin. When I run

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-14 Thread Matt Robinson
On Oct 13, 3:13 pm, Pablo Godel wrote: > I am using sfDoctrineGuard plugin. When I run doctrine:data-dump and then > data-load the passwords which are encripted by default with sha1 get > corrupted. As others have said, sfGuard's setPassword method is called by the data-load task, and re-hashes

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread Pablo Godel
I tried this one briefly and did not fix the problem. The password keeps changing. The other patch looks like it would be the fix but when doing the data-load I get an exception and nothing gets loaded. Need to look further when I get some time. On Tue, Oct 13, 2009 at 11:40 AM, david wrote: >

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread david
There appears to be another work-around: http://trac.symfony-project.org/ticket/6196 On Tue, 13 Oct 2009 17:15:08 +0200, Pablo Godel wrote: > shouldn't this be applied to the plugin code? > > > On Tue, Oct 13, 2009 at 11:10 AM, david > wrote: > >> >> Checkout: http://forum.symfony-project.

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread Pablo Godel
shouldn't this be applied to the plugin code? On Tue, Oct 13, 2009 at 11:10 AM, david wrote: > > Checkout: http://forum.symfony-project.org/index.php/m/83831/ for more > info > > On Tue, 13 Oct 2009 16:40:25 +0200, david > wrote: > > > > > The password is hashed when it's set - expecting a plai

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread david
Checkout: http://forum.symfony-project.org/index.php/m/83831/ for more info On Tue, 13 Oct 2009 16:40:25 +0200, david wrote: > > The password is hashed when it's set - expecting a plaintext password > rather than a hashed one. > There was a post a while ago about this issue - you need to crea

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread Gábor Fási
By default, data-load loads the raw data from the yml, but sfGuardPlugin has overwritten setPassword() to make sure passwords are stored encrypted. As doctrine:* tasks use doctrine (and therefore the overwritten setPassword()) the only way to load the raw data is to go around doctrine completely.

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread david
The password is hashed when it's set - expecting a plaintext password rather than a hashed one. There was a post a while ago about this issue - you need to created a method on the model that skips the hashing process. On Tue, 13 Oct 2009 16:35:07 +0200, Pablo Godel wrote: > That's what I th

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread Pablo Godel
That's what I thought is happening, but since the data-dump is raw that, shouldn't data-load load the raw data ? is there any existing method to load the raw dumped data directly to the DB ? thanks for your reply. On Tue, Oct 13, 2009 at 10:19 AM, Gábor Fási wrote: > > The data-dump task export

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread Gábor Fási
The data-dump task exports the raw values found in the database, ie. the encrypted ones. While doing the data-load, the plugin's overwritten setPassword() setter is called, that expect to get a plaintext value, so it encodes it. Your passwords get corrupted because of being encrypted again. On Tu

[symfony-users] Re: sfGuard "remember me" does not quite work

2009-10-11 Thread Alexandru-Emil Lupu
use just the cookie ... not the ip itsself ... On Fri, Oct 9, 2009 at 5:46 PM, Charles Bernard wrote: > > Hi there, > > I’m concerned about this IP checking thing (ip_address field in > sf_guard_remember_key table). > > It seems like my website remenbers me for a day only since most ISPs > renew

[symfony-users] Re: sfGuard Question

2009-09-18 Thread Alexandru-Emil Lupu
HI! SfGuard Supports ajax. i guess you'll have to check the Sf docs for ajax for more details ... Alecs On Fri, Sep 18, 2009 at 8:46 PM, Manish Ranade wrote: > Hi, > I am using sfGuardPlugin for building an authentication system. I am trying > to make it work when the login form is submitted t

[symfony-users] Re: sfGuard backend/admin module for managing users

2009-09-14 Thread Alexandru-Emil Lupu
comment at the bottom On Tue, Sep 15, 2009 at 8:53 AM, Alexandru-Emil Lupu wrote: > HI! > yes ... is possible but, you'll need to make some modifications to > sfGuardPluigin. > > Add something like: > public function executeEdit(sfWebRequest $request) > { > $this->form1 = new FooForm(); > >

[symfony-users] Re: sfGuard backend/admin module for managing users

2009-09-14 Thread Alexandru-Emil Lupu
HI! yes ... is possible but, you'll need to make some modifications to sfGuardPluigin. Add something like: public function executeEdit(sfWebRequest $request) { $this->form1 = new FooForm(); parent::executeEdit($request); } On Tue, Sep 15, 2009 at 1:23 AM, Mihai RUSOAIE wrote: > Hel

[symfony-users] Re: SfGuard : "Remember me" not working...

2009-08-10 Thread Alan Bem
Did you enabled sfGuardBasicSecurityFilter in filters.yml? On Mon, Aug 10, 2009 at 11:39 AM, Aurélien Lansmanne wrote: > > Hello, > > I know this problem is not new, and maybe it has already been asked, > but I haven't been able to find one. > > When I want to login on my website, and check the "

[symfony-users] Re: sfGuard get permission

2009-07-30 Thread Dennis Hellmich
Try hasCredential() instead of hasPermission() if you use $sf_user. I think the latter only works for an sfGuardUser object, i.e. something like $sf_user->getGuardUser()->hasPermission('bla') 2009/7/30 ShotoKan > > Hello... > > I have a trouble with the sfGuardPlugin: I need check if the user ha

[symfony-users] Re: sfGuard group membership

2009-07-19 Thread Hofferek Attila
Gábor Fási írta: > sfGuardSecurityUser has a method called hasGroup(), see > http://trac.symfony-project.org/browser/plugins/sfGuardPlugin/branches/1.2/lib/user/sfGuardSecurityUser.class.php#L189 > > 2009/7/18 Hofferek Attila : >> Hi all, >> >> is it possible to decide programmatically, if the ac

[symfony-users] Re: sfGuard group membership

2009-07-18 Thread Gábor Fási
sfGuardSecurityUser has a method called hasGroup(), see http://trac.symfony-project.org/browser/plugins/sfGuardPlugin/branches/1.2/lib/user/sfGuardSecurityUser.class.php#L189 2009/7/18 Hofferek Attila : > > Hi all, > > is it possible to decide programmatically, if the actual user is member > of a

[symfony-users] Re: sfGuard

2009-07-13 Thread Richtermeister
Hey Germana, you can create your own form, extending the sfGuardUserFilterForm and make your modifications from inside that form. Look at the formatter classes to see what format settings you can customize.. for example: $this -> widgetSchema -> getFormFormatter() -> setErrorListFormatInARow ("

[symfony-users] Re: sfGuard

2009-07-13 Thread Tom Haskins-Vaughan
Create the directory: :apps/myApp/modules/sfGuardAuth/templates Copy the signinSuccess.php template from the plugin into this directory and modify it. You don't need to create the actions directory. Hope that helps. Germana Oliveira wrote: > Hi!! > > just one little thing.. > > How can i mo

[symfony-users] Re: sfGuard problem

2009-05-28 Thread Jacob Coby
If you're using the branches/1.1 svn version of symfony, propel-based tasks are broken for some reason. switch to tags/RELEASE_1_1_7 On May 24, 2009, at 1:54 AM, Alexandru-Emil Lupu wrote: > symfony cc ? > > On Sun, May 24, 2009 at 6:58 AM, murthy > wrote: > > Hello, > I am using Propel O

[symfony-users] Re: sfGuard problem

2009-05-23 Thread Alexandru-Emil Lupu
symfony cc ? On Sun, May 24, 2009 at 6:58 AM, murthy wrote: > > Hello, > I am using Propel ORM. > > On May 20, 5:11 pm, "Jan De Coster" wrote: > > What ORM are you using ? > > > > Kr, > > > > -Oorspronkelijk bericht- > > Van: symfony-users@googlegroups.com [mailto: > symfony-us...@goog

[symfony-users] Re: sfGuard problem

2009-05-23 Thread murthy
Hello, I am using Propel ORM. On May 20, 5:11 pm, "Jan De Coster" wrote: > What ORM are you using ? > > Kr, > > -Oorspronkelijk bericht- > Van: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] > Namens murthy > Verzonden: woensdag 20 mei 2009 13:58 > Aan: symfony u

[symfony-users] Re: sfGuard problem

2009-05-20 Thread Alexandru-Emil Lupu
See that you might use doctrine. If you are using doctrine, then you should install sfDoctrineGuard or so. Alecs On Wed, May 20, 2009 at 3:11 PM, Jan De Coster wrote: > > What ORM are you using ? > > Kr, > > -Oorspronkelijk bericht- > Van: symfony-users@googlegroups.com [mailto:symfony

[symfony-users] Re: sfGuard problem

2009-05-20 Thread Jan De Coster
What ORM are you using ? Kr, -Oorspronkelijk bericht- Van: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Namens murthy Verzonden: woensdag 20 mei 2009 13:58 Aan: symfony users Onderwerp: [symfony-users] sfGuard problem When I try to do "symfony propel:build-mo

[symfony-users] Re: sfGuard - how can I make default is_active = 0 ?

2009-03-09 Thread isleshocky77
Of lately I've been all about putting everything in the model, it just makes all the code cleaner. Anyways, if you're going to want users to be set as inactive by default more than active you might want to think about making that field default to false. Then you would only have to handle it in t

[symfony-users] Re: sfGuard - how can I make default is_active = 0 ?

2009-03-09 Thread dziobacz
WOW - now it works - thx you so much !! :P On 9 Mar, 11:45, Gregoire Laporte wrote: > yes !! > Look herehttp://trac.symfony-project.org/ticket/5891 > > Good luck :p > > > > > Date: Mon, 9 Mar 2009 03:38:50 -0700 > > Subject: [symfony-users] Re: sfGuard - how

[symfony-users] Re: sfGuard - how can I make default is_active = 0 ?

2009-03-09 Thread Gregoire Laporte
yes !! Look here http://trac.symfony-project.org/ticket/5891 Good luck :p > Date: Mon, 9 Mar 2009 03:38:50 -0700 > Subject: [symfony-users] Re: sfGuard - how can I make default is_active = 0 ? > From: aaabbbcccda...@gmail.com > To: symfony-users@googlegroups.com > > >

[symfony-users] Re: sfGuard - how can I make default is_active = 0 ?

2009-03-09 Thread dziobacz
I have changed file action.class.php: $user = new sfGuardUser(); $uuser->setUsername($this->form->getValue('username')); $user->setPassword($this->form->getValue('password')); $user->setIsActive(0); $user->save(); so I have: class registrationActions extends sfActions { public function execute

[symfony-users] Re: sfGuard - how can I make default is_active = 0 ?

2009-03-09 Thread Gregoire Laporte
try this $this['is_active'] = 0; but i'm not sure. If you need a good register you can use the plugin sfApply (register with email, forgot password, edit profile... and so and so) > Date: Mon, 9 Mar 2009 03:16:31 -0700 > Subject: [symfony-users] Re: sfGuard - how can I m

[symfony-users] Re: sfGuard - how can I make default is_active = 0 ?

2009-03-09 Thread dziobacz
file do you edit cause i haven't this code. > > > > > Date: Mon, 9 Mar 2009 03:00:32 -0700 > > Subject: [symfony-users] Re: sfGuard - how can I make default is_active = 0 > > ? > > From: aaabbbcccda...@gmail.com > > To: symfony-users@googlegroup

[symfony-users] Re: sfGuard - how can I make default is_active = 0 ?

2009-03-09 Thread Gregoire Laporte
and with $this->setIsActive(0);Which Release of this plugin have you? (1.2?) and which file do you edit cause i haven't this code. > Date: Mon, 9 Mar 2009 03:00:32 -0700 > Subject: [symfony-users] Re: sfGuard - how can I make default is_active = 0 ? > From: aaabbbcccda.

[symfony-users] Re: sfGuard - how can I make default is_active = 0 ?

2009-03-09 Thread dziobacz
his->widgetSchema['surname'] = new sfWidgetFormInput(); $this->widgetSchema['email'] = new sfWidgetFormInput(); //validators. I deleted them - code will be too long } } On 9 Mar, 10:43, Gregoire Laporte wrote: > i think you need to change the sa

[symfony-users] Re: sfGuard - how can I make default is_active = 0 ?

2009-03-09 Thread Gregoire Laporte
i think you need to change the save method in /plugin/sfGuardPlugin/lib/model/pluginSfGuardUser.class.php! > Date: Mon, 9 Mar 2009 02:35:31 -0700 > Subject: [symfony-users] Re: sfGuard - how can I make default is_active = 0 ? > From: aaabbbcccda...@gmail.com > To: symfony-users@goog

[symfony-users] Re: sfGuard - how can I make default is_active = 0 ?

2009-03-09 Thread dziobacz
t's a bug i think ! > > > Date: Mon, 9 Mar 2009 02:12:32 -0700 > > Subject: [symfony-users] Re: sfGuard - how can I make default is_active = 0 > > ? > > From: webmas...@apprendre-php.com > > To: symfony-users@googlegroups.com > > > You ha

[symfony-users] Re: sfGuard - how can I make default is_active = 0 ?

2009-03-09 Thread Gregoire Laporte
But you can notice that even is_active == 0 ,the user can connect !! It's a bug i think ! > Date: Mon, 9 Mar 2009 02:12:32 -0700 > Subject: [symfony-users] Re: sfGuard - how can I make default is_active = 0 ? > From: webmas...@apprendre-php.com > To: symfony-users@googlegroup

[symfony-users] Re: sfGuard - how can I make default is_active = 0 ?

2009-03-09 Thread Hugo HAMON
You have to override the save() method of your form to force the setIsActive(false) inside. The code you have put in your action does not belong to the controller but to the model, so let's move it in the save method of your form. --~--~-~--~~~---~--~~ You received

[symfony-users] Re: sfguard checks credentials before symfony checks if action is valid

2009-02-03 Thread James
I do agree, and this is really probably an question with the Symfony security model and not sfGuard, so you should probably post this on the developers list as it's more related to the design of symfony and not general use. James On Feb 3, 2009, at 1:25 PM, Iltar wrote: > > Here's my tho

[symfony-users] Re: sfguard hardening

2009-01-15 Thread ganda...@gmail.com
Sure! On Jan 15, 2:18 am, "krassswr krawr" wrote: > This is very interesting. Are you planing to post this modified version > somewhere so other users can use it? > > On Tue, Jan 13, 2009 at 8:35 PM, Yevgeniy A. Viktorov > wrote: > > > > > Sure, would be great to have this as optional funct

[symfony-users] Re: sfguard hardening

2009-01-15 Thread krassswr krasssswr
This is very interesting. Are you planing to post this modified version somewhere so other users can use it? On Tue, Jan 13, 2009 at 8:35 PM, Yevgeniy A. Viktorov wrote: > > > Sure, would be great to have this as optional functionality of > sfGuardPlugin. > > Thanks. > > On Tue, 2009-01-13 at 02:

[symfony-users] Re: sfguard hardening

2009-01-13 Thread Yevgeniy A. Viktorov
Sure, would be great to have this as optional functionality of sfGuardPlugin. Thanks. On Tue, 2009-01-13 at 02:30 -0800, ganda...@gmail.com wrote: > Hello, > > I'm using a modified version of sfguard that does: > > 1) I added a delay after a password failure (every failed attempt > increments

[symfony-users] Re: sfGuard, use frontend to authenticate to the backend

2009-01-09 Thread Yevgeniy A. Viktorov
Thanks for the reply, but for NOTE: I am looking to setup/share only ONE "signin" instance(decorated by frontend layout) for any(two+) applications. :) Let's say you have two applications on project, backend and frontend, than it seems like you must enable sfGuardAuth module for both and it's w

[symfony-users] Re: sfGuard, use frontend to authenticate to the backend

2009-01-09 Thread small
When you install sfGuard it will automatically route to the login module/action when the user hits an action that is protected. So all you do is install that , and you can have a play with you app routying.yml to make the redirects. On Jan 9, 12:42 am, "Yevgeniy A. Viktorov" wrote: > Hello, > >

[symfony-users] Re: sfGuard/sfGuardDoctrine and form population

2008-12-10 Thread Jonathan Wage
You need to provide the Profile object that the ProfileForm is bound to. class UserEditForm extends sfGuardUserForm { public function configure() { parent::configure(); $profileForm = new ProfileForm($this->object->getProfile()); unset($profileForm['id'], $profileForm['sf_guar

[symfony-users] Re: SfGuard (Propel) question

2008-12-10 Thread Lee Bolding
On 10 Dec 2008, at 17:23, Sid Ferreira wrote: > Indeed my english is sucking last days, but thanks for understanding. > > Well, the only point is that MyUsers would be 1:1 in SfGuardUser, > and all other tables would connect to MyUsers. So you'd just change your schema.yml (so that your model

[symfony-users] Re: SfGuard (Propel) question

2008-12-10 Thread Sid Ferreira
Indeed my english is sucking last days, but thanks for understanding. Well, the only point is that MyUsers would be 1:1 in SfGuardUser, and all other tables would connect to MyUsers. The problem isn't logins it self, it's just a database organization. On Wed, Dec 10, 2008 at 15:17, Lee Bolding <[

[symfony-users] Re: SfGuard (Propel) question

2008-12-10 Thread Lee Bolding
The only "link" they'll have in the default configuration is the table names themselves. Ofcourse, if that's a problem for you, you can create a table with the name you DO like, and use the sfGuard external authentication method to authenticate against this table (but then you'll have to de

[symfony-users] Re: sfGuard/sfGuardDoctrine and form population

2008-12-10 Thread Thomas Rabaix
Please keep in mind that all the form logic should be done inside the form, the form is self dependant So this code should be avoid : $this->form->setDefaults($this->getUser()->getProfile()); you can provide to your UserEditForm the sfUser Object, and then overwrite the method updateDefaultsFromO

[symfony-users] Re: sfGuard User Profile and adding new user

2008-11-20 Thread Flancer
Ok rebuilding the filters seems to have solved this issue. Thank you. On Nov 20, 8:47 pm, "noel guilbert" <[EMAIL PROTECTED]> wrote: > Hi, > > I've just tested it and I can't reproduce this bug. Can you give us > more details about your error 500 ? > > Did you rebuild your forms/filters after the

[symfony-users] Re: sfGuard User Profile and adding new user

2008-11-20 Thread noel guilbert
Hi, I've just tested it and I can't reproduce this bug. Can you give us more details about your error 500 ? Did you rebuild your forms/filters after the upgrade ? On Thu, Nov 20, 2008 at 4:28 AM, Flancer <[EMAIL PROTECTED]> wrote: > > Oh I forgot to mention I am using Symfony 1.2 beta2 > > On N

[symfony-users] Re: sfGuard User Profile and adding new user

2008-11-19 Thread Flancer
Oh I forgot to mention I am using Symfony 1.2 beta2 On Nov 20, 9:53 am, Flancer <[EMAIL PROTECTED]> wrote: > I have noted something strange about sfGuard 3.1.1. > > I have created a table for sfGuardUserProfile for a project. > > I would get an error 500 everytime someone logins with a user that

[symfony-users] Re: sfGuard - Permissions & Groups

2008-10-21 Thread Jonathan Wage
*On Behalf Of *Jonathan Wage > *Sent:* Wednesday, 22 October 2008 4:17 AM > *To:* symfony-users@googlegroups.com > *Subject:* [symfony-users] Re: sfGuard - Permissions & Groups > > > > I took a look and it seems that is how it behaves. I dunno if that is > intended or no

[symfony-users] Re: sfGuard - Permissions & Groups

2008-10-21 Thread Alex 'noetix' Joyce
Y credentials. From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Wage Sent: Wednesday, 22 October 2008 4:17 AM To: symfony-users@googlegroups.com Subject: [symfony-users] Re: sfGuard - Permissions & Groups I took a look and it seems that is how it behave

[symfony-users] Re: sfGuard - Permissions & Groups

2008-10-21 Thread Jonathan Wage
I took a look and it seems that is how it behaves. I dunno if that is intended or not, but I don't think it should be that way. In the Doctrine version of the plugin, sfDoctrineGuardPlugin, it behaves the way you are expecting. It makes sure the explicit permissions and permissions through groups a

[symfony-users] Re: sfGuard - Permissions & Groups

2008-10-21 Thread Alex 'noetix' Joyce
Anyone? From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex 'noetix' Joyce Sent: Sunday, 19 October 2008 11:05 PM To: symfony-users@googlegroups.com Subject: [symfony-users] sfGuard - Permissions & Groups Hi, I'm under the understanding that: - users ca

[symfony-users] Re: sfGuard - Permissions & Groups

2008-10-19 Thread Lee Bolding
I think you need to use $sf_user->getAllPermssions() to include a users group permissions. I usually overload the sfGuardUser::getPermissions function to use getAllPermissions, it just makes more sense to me that way. On 19 Oct 2008, at 13:04, Alex 'noetix' Joyce wrote: > > > After looking a

[symfony-users] Re: sfGuard - how to implement registration

2008-09-09 Thread Sifix
Javo I find the solution. if you use $this->form->getObject->save(); then you will save the modied value of the object that you did using $this->form->getObject()->setUserId(1); but the other fields that were posted through the form will not be saved. So what you have to do is the following //U

[symfony-users] Re: sfGuard - how to implement registration

2008-09-09 Thread Sifix
Hello, Whtat I have understand is if instead of $sf_guard_user_profile = $this->form->save(); you use $sf_guard_user_profile = $this->form->getObject->save(); then you will be able to save the id you set above.. Please also take not the following post on my thread http://www.symfony-project.org/

[symfony-users] Re: sfGuard - how to implement registration

2008-08-27 Thread javo
So, I separated my functions (register and update), first I'll make my register function, I've tried to rewrite it all I want to create user ONLY (temporarily) in sf_guard_user_profile ( ALWAYS with user_id = 1(I'm trying to understand symfony system)) , so I did something like this public fun

[symfony-users] Re: sfGuard - how to implement registration

2008-08-26 Thread Lee Bolding
You're using a function named update to create new users??? Try using separate functions for creating and updating users, it will make your life a LOT easier. The update function doesn't need to create any new objects, and in the registration function, you can use the shortcut $profile = $us

[symfony-users] Re: sfGuard - how to implement registration

2008-08-26 Thread javo
thx but setNew(FALSE) won't solve my problem, because I want to create new users, not just update them maybe if somebody show me how did he create his registration I spent so much time solving this problem On Aug 26, 12:06 am, "Jim Barcelona" <[EMAIL PROTECTED]> wrote: > You can try s

[symfony-users] Re: sfGuard - how to implement registration

2008-08-26 Thread Leonardo Diaz
I think you have to edit the data in the $request->getParameter('sf_guard_user_profile') before you bind() it. On Mon, Aug 25, 2008 at 10:49 AM, javo <[EMAIL PROTECTED]> wrote: > > I've created something like this > > public function executeUpdate($request) > { > > >$this->forward404Unless

[symfony-users] Re: sfGuard - how to implement registration

2008-08-26 Thread javo
I've created something like this public function executeUpdate($request) { $this->forward404Unless($request->isMethod('post')); $this->form = new SfGuardUserProfileForm(SfGuardUserProfilePeer::retrieveByPk($request- >getParameter('id'))); $this->form->bind($request- >getParamete

[symfony-users] Re: sfGuard - how to implement registration

2008-08-26 Thread Jim Barcelona
You can try something like this: $sfGuardUser->setNew(FALSE); That tells symfony just to update the user, and you should do the same for sfGuardUserProfile. If you're looking for something pretty thorough, check out my blog on installing the sfGuardAuthPlugin for symfony 1.1 here for some clues:

[symfony-users] Re: sfGuard - how to implement registration

2008-08-25 Thread javo
I'm sorry but can somebody show me how to do that?, I'd like to see some code example for a start, I'm trying to write that, but I'm newbie to symfony On Aug 25, 10:49 am, Lee Bolding <[EMAIL PROTECTED]> wrote: > On 25 Aug 2008, at 09:02, javo wrote: > > > public function executeUpdate($request)

[symfony-users] Re: sfGuard - how to implement registration

2008-08-25 Thread Lee Bolding
On 25 Aug 2008, at 09:02, javo wrote: > public function executeUpdate($request) > { >$this->forward404Unless($request->isMethod('post')); >$this->form = new > SfGuardUserProfileForm(SfGuardUserProfilePeer::retrieveByPk($request- >> getParameter('id'))); >$this->form->bind($request-

[symfony-users] Re: sfGuard - how to implement registration

2008-08-25 Thread javo
First of all thank you for your answers, I have latest sfGuard installed, but I can't do that anyway I tried to edit my user/update action, here's the code public function executeUpdate($request) { $this->forward404Unless($request->isMethod('post')); $this->form = new SfGuardUserProf

[symfony-users] Re: sfGuard - how to implement registration

2008-08-24 Thread cindy
I had the same problem, but I think Fabien (or someone) added the processing to the sfGuardUserForm to update the sfGuardUserProfile as well as sfGuardUser recently. If you update your sfGuard plugin, you should see the clode in the sfGuardUserForm. With this new code, it's as easy as building t

[symfony-users] Re: sfGuard - how to implement registration

2008-08-24 Thread javo
Ok thank you for your post, I choose tha way of editing CRUD (user/ edit) can somebody show me the example of editing user/edit action, to edit both sf_guard_user and sf_guard_user_profile tables and connect them? thank you On Aug 22, 4:01 pm, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote: > On F

[symfony-users] Re: sfGuard - how to implement registration

2008-08-24 Thread javo
thank you for your message, I'm user of Symfony 1.1 , and I don't want to have many plugins , I prefer my own code ... so I decided to create my registration using user/create (crud), but I want to ask you how should I edit my code to provide that ..here's the user/update action public function

[symfony-users] Re: sfGuard - how to implement registration

2008-08-23 Thread Sumedh
I think cookbook should have something... On Aug 22, 7:31 pm, javo <[EMAIL PROTECTED]> wrote: > hi all, > > I'm new to symfony and I'd like to ask what is the best way to create > a registration, (create some simple form, use crud user model? , ...) > > I've sfGuardPlugin installed, and I have so

[symfony-users] Re: sfGuard - how to implement registration

2008-08-22 Thread Nicolas Perriault
On Fri, Aug 22, 2008 at 4:31 PM, javo <[EMAIL PROTECTED]> wrote: > I'm new to symfony and I'd like to ask what is the best way to create > a registration, (create some simple form, use crud user model? , ...) > Is there any howto? I couldn't find anything Smile If you use symfony 1.0, you can ta

[symfony-users] Re: sfGuard: how to manage many profile types?

2008-08-20 Thread Thomas Rabaix
There is no 'clean' way to do that. There is a plugin from Francois which allows to do that, but it is a sf1.0 plugin http://www.symfony-project.org/plugins/sfPropelAlternativeSchemaPlugin not sure if sf1.1 has a way to change on the fly the database schema to add custom field Thomas On Wed, A

[symfony-users] Re: sfGuard: how to manage many profile types?

2008-08-20 Thread Nicolas CHARLOT
Le 20 août 08 à 11:41, Thomas Rabaix a écrit : > I have a sf1.0 project with a custom sfGuardUser in lib/model and it > works fine. > > have you try a symfony cc ? you can check the cache file to see how > symfony create the autoload classes array. > > Thomas Ok, u're right Thomas. Excuse-me f

[symfony-users] Re: sfGuard: how to manage many profile types?

2008-08-20 Thread Thomas Rabaix
I have a sf1.0 project with a custom sfGuardUser in lib/model and it works fine. have you try a symfony cc ? you can check the cache file to see how symfony create the autoload classes array. Thomas On Wed, Aug 20, 2008 at 11:29 AM, Nicolas CHARLOT <[EMAIL PROTECTED]> wrote: > > Le 20 août 08 à

[symfony-users] Re: sfGuard: how to manage many profile types?

2008-08-20 Thread Nicolas CHARLOT
Le 20 août 08 à 11:25, Thomas Rabaix a écrit : > you can copy the sfGuardUser class into your lib/model folder. The > autoloader load model in the lib/model first (at least for sf1.0). It's what I done, but it's not working :( -- Nicolas CHARLOT http://www.isics.fr --~--~-~--~~--

[symfony-users] Re: sfGuard: how to manage many profile types?

2008-08-20 Thread Thomas Rabaix
you can copy the sfGuardUser class into your lib/model folder. The autoloader load model in the lib/model first (at least for sf1.0). so you can easily redefine methods. Thomas On Wed, Aug 20, 2008 at 11:04 AM, Nicolas CHARLOT <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm looking for the best prac

[symfony-users] Re: sfGuard with multiple profiles

2008-07-10 Thread Савин Дима
Hi You can make two tables for storing profile information, for example company_profile and candidate_profile with foreign key to user id. Than, you can generate models for them. Than you should create two user groups like "candidates" and "companies" using sfGuardPlugin In the settings you shoul

[symfony-users] Re: sfGuard, securing and Templates

2008-06-27 Thread Phil
*Phil look on with interest and makes notes on how this all works* This is a geat help guys pitty i didnt ask the questions myself *mutters somthing about always rushing his work* The info was great think it helps all the issues i was goingto ask adrian on monday. On Jun 24, 7:33 am, Piers War

[symfony-users] Re: sfGuard, securing and Templates

2008-06-24 Thread Piers Warmers
Hi, > If the user logs out (or if the session terminates), is it possible to > redirect the user to the main page? You can set a success_signout_url configuration in the app.yml. More info here: http://trac.symfony-project.com/wiki/sfGuardPluginFor10#CustomizesfGuardAuthredirecthandling > Ma

[symfony-users] Re: sfGuard, securing and Templates

2008-06-24 Thread Ady (WK)
Piers Yes that helped a lot! The indents were definitely an issue with the copy and paste. Ok - my final bit for the time being... I have the "booking" now working so the user needs to be logged in to continue on. If the user logs out (or if the session terminates), is it possible to redirect

[symfony-users] Re: sfGuard, securing and Templates

2008-06-23 Thread Piers Warmers
Yeah, It can be confusing - a few of tips: 1 ) Check out what credentials your current user has by using the dev panel. You'll need to be using your application in dev mode ( something like backend_dev.php ) and then look in: vars & config > Settings > credentials that should give you a l

  1   2   >