Questions tagged [sfdoctrineguard]

The sfDoctrineGuard plugin is a Symfony plugin providing user authentication and access management.

The sfDoctrineGuard plugin is a Symfony plugin providing user authentication and access management. It's designed for Symfony projects using the Doctrine ORM.

79 questions
1
vote
3 answers

Unknown record property / related component "permissions" on "sfGuardUser"

There are a couple of other questions on here regarding this but they are old and have not been answered satisfactorily IMHO. I am getting this error - "Unknown record property / related component "permissions" on "sfGuardUser", referer:" - in my…
codecowboy
  • 9,835
  • 18
  • 79
  • 134
1
vote
1 answer

No Username? sfDoctrineGuard/Apply

I'm using the sfDoctrineApplyPlugin and the registration form requires a username - what's the best way of removing this field? As the sfDoctrineGuardPlugin allows login via username or email address I'd like my application to use the email address…
Peter Hough
  • 560
  • 4
  • 17
1
vote
0 answers

Forced to log out when sfDoctrineGuard denies access due to lack of permissions

I am using the sfDoctrineGuard module to manage permissions for my symfony project. I have noticed the following behavior: If you are logged in as one user and then try to access something for which you don't have credentials, you will be told as…
rlandster
  • 7,294
  • 14
  • 58
  • 96
1
vote
2 answers

Extend sfDoctrineGuard logged-in session in Symfony 1.4?

Is there an easy way to extend the logged-in session length for sfDoctrineGuard in Symfony 1.4? I think it times out at 30 minutes currently but would like to make it longer. Thanks
Tom
  • 30,090
  • 27
  • 90
  • 124
1
vote
1 answer

sfDoctrineGuardPlugin forgets credentials after verifying them

I am searching for a solution to an authentication problem. I've only found one person (in the symfony-users Google group) with the same problem (#2 at bottom) way back in May of last year. As far as I can tell, no solution was posted to list. In my…
Ryan
  • 23
  • 1
  • 4
1
vote
2 answers

allow users to change their own password, email and Profile

I'm creating my own blog engine to learn Symfony, and I have a question : I can add and edit users thanks to the sfGuardUser module, but how can I allow users to edit only their reccord ? Users should have access to a page allowing them to edit…
Manu
  • 4,410
  • 6
  • 43
  • 77
1
vote
2 answers

with Symfony sfDoctrineGuardPlugin, users can open a page which actually they cannot by changing url

I am using Symfony 1.4, sfDoctrineGuardPlugin. On my backend app, users can reach a page which they cannot actually by changing url manually. Is there any way to stop it? Lets say, every author can just reach their own data normally. But if they…
Erman Taylan
  • 383
  • 1
  • 3
  • 12
1
vote
1 answer

Using sfDoctrineGuardPlugin. Want to set id field without user choice

I am using Symfony 1.4 and Doctrine 1.2 and sfDoctrineGuardPlugin. I have a article create page. On my article table, i have profile_id field for saving which user (author) wrote it. My problem is, when a user write an article and click to save,…
1
vote
2 answers

Display current logged-in user

I'm using Symfony and sfDoctrineGuardPlugin. How do I display, in a template, the username of the current user ? I've tried $this->getUser()->getUsername(), but all I get is the error : "Call to undefined method sfPHPView::getUser." I'm trying to…
Manu
  • 4,410
  • 6
  • 43
  • 77
1
vote
1 answer

How to embed sfDoctrineGuard's login and take the user to another app's default route on successful login?

Well, basically that: I've got apps A and B and I want 2 things: 1) Login form embedded in A's layout 2) Redirect to B's default route on successful login Thanks in advance.
1
vote
1 answer

Embed forms in Symfony

I've added a profile class to sfDoctrineGuard, and in the admin I'm trying to edit the profile part while editing the user, using embed forms as explained here:…
Manu
  • 4,410
  • 6
  • 43
  • 77
1
vote
2 answers

Symfony/sfDoctrineGuard Conditional Permissions

I'm contemplating the best way to implement the conditional permissions i.e. Users and Teams are m-to-m. But each Team also has a 1-to-m "Leader" relationship with the User table as well. For simplicity sake, let's say we have two permission levels,…
xzyfer
  • 13
  • 3
1
vote
2 answers

Symfony sfDoctrineGuard plugin sfGuardUser module

When using sfDoctrineGuard plugin, it automatically generates the backend administration functionality where I can edit users of the system and assign them permissions. So I visit http://.../backend_dev.php/sf_guard_user/:id/edit where I am…
Joe Mc
  • 11
  • 3
1
vote
1 answer

Assign groups based on logged user credentials

I'm developing a application using sfDoctrineGuardPlugin and Symfony 1.4.20 then I've three users and three users groups and some permissions as follow: user_name user_group permissions u1 Group1 can_admin_full,…
Reynier
  • 2,420
  • 11
  • 51
  • 91
1
vote
3 answers

Setting user culture at signin with sfDoctrineGuardPlugin

How do you set the user culture during the signin process which is handled by the sfDoctrineGuardPlugin? Each user can set their preferred language which is stored in the sfGuardUserProfile table. Originally I had thought about overriding the…