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
5
votes
1 answer

with Symfony sfDoctrineGuardPlugin, i need to have user group and some settings for permissions etc

its my first real project with Symfony. i need to have some settings like permissions on my backend application. i know, i must do it with sfDoctrineGuardPlugin. but i don't know how? i have read everthing about sfDoctrineGuardPlugin on symfony…
Erman Taylan
  • 383
  • 1
  • 3
  • 12
4
votes
2 answers

need a help for the error Unknown record property / related component "permissions" on "sfGuardUser"

i am develping a project using symfony1.4.16 and Doctrine and for authentication i am using sfDoctrineGuardPlugin. In my localhost it was working fine. when i moved my project on a shared host i am getting this error(Unknown record property /…
Juice
  • 3,023
  • 6
  • 39
  • 66
3
votes
2 answers

Symfony - sfDoctrineGuard - Share Model Files Between two Symfony Projects

Afternoon. I am working on multiple symfony projects which will share the same user database, and because I didn't want to re-invent the wheel I opted to use sfDoctrineGuard. I have a corelib that the symfony applications both have access too, so I…
Mike Purcell
  • 19,847
  • 10
  • 52
  • 89
3
votes
2 answers

Adding an avatar field to the sfGuardUser model of sfDoctrineGuard plugin

I'm using sfDoctrineGuardPlugin to manage users, groups and authentication in my Symfony application. Now I would like to add an avatar to the sfGuardUser model. How can I do that? What's the best approach? I have seen several ways on the Internet,…
elitalon
  • 9,191
  • 10
  • 50
  • 86
3
votes
1 answer

Symfony: customizing sfDoctrineGuardPlugin modules

I'm trying to customize the forms of sfGuardUser module. After installing the sfGuardDoctrinePlugin, I followed the cascading-configuration convention of Symfony and created the following…
elitalon
  • 9,191
  • 10
  • 50
  • 86
3
votes
3 answers

Symfony sfDoctrineGuardPlugin custom login query

I use symfony sfDoctrineGuardPlugin to manage authentication for both frontend users and backend users. It's fine, except that I don't want frontend users to be able to login to the backend app. I can setup credentials, but credentials are checked…
Dziamid
  • 11,225
  • 12
  • 69
  • 104
2
votes
1 answer

how to correctly get ID?

I use Symfony 1.4, Doctrine 1.2 and sfDoctrineGuardPlugin. In actions.class.php i have: $this->idsfguard = $this->getUser()->getGuardUser()->getId(); if i am logged in this work good, but if i logout then i have error: Fatal error: Call to a…
Beyed Black
  • 57
  • 1
  • 5
2
votes
2 answers

Migrating Existing Users and Passwords to new Symfony/sfDoctrineGuard User System

I have an existing, non-framework-based PHP/MySQL website. It has a simple security model, with a users table with usernames and hashed (MD5) passwords. I'm currently working on "version 2" of this site, this time using Symfony, with Doctrine. The…
Matt Gibson
  • 37,886
  • 9
  • 99
  • 128
2
votes
3 answers

Symfony admin generator : add user id before saving

I'm creating my own blog engine to learn Symfony, and I have a question : In the generated administration pages for a blog post, I have a drop-down list of authors, to indicate the author_id. I'd like to hide that drop-down list, and set the…
Manu
  • 4,410
  • 6
  • 43
  • 77
2
votes
1 answer

Where to implement the security filter for dynamic groups

First I'll describe rougthly the context. I want to have a symfony application where I can create various areas. In each of the areas, you can have different kinds of users (or roles). Each user can have multiple roles in different areas. To…
Vincent Mimoun-Prat
  • 28,208
  • 16
  • 81
  • 124
2
votes
3 answers

schema.yml using sfDoctrineGuardPlugin

I'm building a schema.yml and I'm trying to add foreign key constraints to the table sf_guard_user. But, when I do doctrine:insert-sql (edit: doctrine:build --all), the links between my tables and sf_guard_user are not there ! Am I missing something…
Manu
  • 4,410
  • 6
  • 43
  • 77
2
votes
2 answers

symfony override BaseForm class howto

I've installed the sfDoctrineGuard plugin. Everything is working, I can use the /sf_guard_user/edit/:id page to edit a user. I didn't like the way the permissions were listed as a select list, I wanted to display them as individual checkboxes split…
Serg
  • 135
  • 1
  • 9
2
votes
2 answers

How to detect if a user is logged in symfony?

I need to know how I can get if a specific user in symfony is logged in the application, is there a way to get the session id for the current users logged? I've tried with a table when I have a field named is_online and y set it when the user…
JERC
  • 1,584
  • 3
  • 17
  • 38
1
vote
2 answers

how to create a custom design for adding a new user in sfDoctrineGuardPlugin

i am new to symfony i would like to create a custom design for adding a new user. how to create a custom design for adding new user in sfDoctrineGuardPlugin . http://localhost/xxxx/web/backend_dev.php/guard/users/new i am able to add a new user in…
Juice
  • 3,023
  • 6
  • 39
  • 66
1
vote
1 answer

Symfony, sfDoctrineGuardPlugin and translations (I18N / I10N)

Recently I have been struggling with the sfDoctrineGuardPlugin available for Symfony. The issue is with translation of the plugin. The people behind sfDoctrineGuardPlugin have obviously thought about i18n, as they have provided some translations in…
1
2 3 4 5 6