Questions tagged [fosuserbundle]

The FOSUserBundle adds support for a database-backed user system in Symfony2. It provides a flexible framework for user management that aims to handle common tasks such as user registration and password retrieval.

The FOSUserBundle adds support for a database-backed user system in Symfony2. It provides a flexible framework for user management that aims to handle common tasks such as user registration and password retrieval.

Features include:

  • Users can be stored via Doctrine ORM, MongoDB/CouchDB ODM or Propel
  • Registration support, with an optional confirmation email
  • Password reset support
  • Unit tested
2611 questions
15
votes
5 answers

Symfony 4 fosuserbundle

I begin with Symfony 4 and I want to install FosUserBundle with this link : https://symfony.com/doc/master/bundles/FOSUserBundle/index.html First : My problem is that I don't know where to find the "app/config/config.yml" file to uncomment the…
cretthie
  • 349
  • 1
  • 2
  • 11
15
votes
5 answers

setting a placeholder attribute with translation in Symfony2 form input

I am using FOSUserBundle for managing my users. In order to register user, I reused the form of the bundle which meets my needs. Nevertheless, I needed to set some attributes of my fields. This is was done easyly by twig like this: {{…
Amine Jallouli
  • 3,919
  • 8
  • 36
  • 73
15
votes
2 answers

How to restfully login, Symfony2 Security, FOSUserBundle, FOSRestBundle?

I'd like to be able to login via a ws. I've tried to simulate this with curl pointing to /login but it only handles HTML, etc. By the way, it requires a CSRF which I don't want. So I'd like to either disable the CRSF (from the login_check) or find a…
Trent
  • 5,785
  • 6
  • 32
  • 43
15
votes
2 answers

FOSUserBundle login with email (Symfony2)

I have a question about the FOSUserBundle for Symfony 2.0.x. In there documentation you can find a way to change the login to work with either username and email. That works great! But I want to login to work with just the email. So I added a…
jeroenjoosen
  • 649
  • 2
  • 10
  • 22
14
votes
3 answers

FOSUserBundle no encoder has been configured : creating a new user

i would like to create a new user in FOSUserBundle (Symfony2), but i always get the same message (i'm using php app/console fos:user:create ) : No encoder has been configured for account "MyProject\UserBundle\Entity\User". the imports are in the…
Paul
  • 6,108
  • 14
  • 72
  • 128
14
votes
4 answers

Unrecognized option "resource" under "fos_user"

I am integrating FOSUserBundle in my application and I am trying to run php bin/console doctrine:migration:diff after following the recommended set-up. I am systematically getting a: In ArrayNode.php line 319: Unrecognized option "resource" under…
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
14
votes
10 answers

Deploying Symfony2 app getting fosuserbundle errors

I have installed my Symfony project on another computer with the same specifications, and I receive the following error when I login with fosuserbundle: Authentication request could not be processed due to a system problem. I can't find anything of…
estrar
  • 1,373
  • 4
  • 12
  • 37
14
votes
3 answers

Create an Admin User with FosUserBundle

I try to create an Admin User with FOsUserBundle from command windows with the following command: php app/console fos:user:create In my project the Admin User extends other user with mandatory propriety. So, when I choose my username, mail and…
Gianni Alessandro
  • 860
  • 6
  • 11
  • 28
14
votes
7 answers

Symfony2 FOSUserBundle User entity field override

I have a problem with overriding an entity. I need the field emailCanonical to be not be unique. Here is what I've done: In my UserBundle\Resources\config\doctrine\User.orm.xml I've added the following attribute-overrides configuration, according…
SideWinder
  • 141
  • 1
  • 1
  • 5
14
votes
1 answer

How to configure FOSUserBundle to be the authentication provider for my FOSOAuthServerBundle enabled server

I am trying to set up FOSUserBundle to be the authentication provider for my FOSOAuthServerBundle enabled server. The FOSOAuthServerBundle has been working correctly prior to me trying to implement FOSUserBundle and I have also had FOSUserBundle…
caxton
  • 203
  • 1
  • 3
  • 11
13
votes
2 answers

Email confirmation on FOSUserBundle Profile Edit

I would like to activate the email confirmation on FOSUserBundle /profile/edit In /profile/edit you are already logged in and you can edit the username or the email address entering the current password. Now I would like to send a confirmation email…
Francesco Casula
  • 26,184
  • 15
  • 132
  • 131
13
votes
2 answers

HWIOAuthBundle Google login device_id and device_name for a webapp

I am working on a Symfony2 app. I'm using FOSUserBundle to handle authentication and recently integrated it with FOSUserBundle using this tutorial: https://gist.github.com/danvbe/4476697 . The problem is: I can login using the google api on…
user3460035
  • 131
  • 1
  • 1
  • 4
13
votes
3 answers

FOSUserBundle - Validation for username, password or email fields

In the FOUserBundle, I would like to be able to change the validation settings for minimum length, maximum length and not blank on fields such as username and password. I was able to put some validation via @Assert on my custom fields, but now I am…
mwinter
  • 596
  • 2
  • 5
  • 14
13
votes
1 answer

Symfony 2: Dependency injection (DI) of Controllers

Is there any chance to make Controllers dependent on their services not via using of service container inside them but through pure constructor dependency injection? I would like to write controllers in this way:
12
votes
4 answers

Login user using memory provider in Symfony

after installing FOSUserBundle, now Im trying to login with user/ userpass but I still get the "Bad credentials" message. This is my security.yml: security: encoders: Symfony\Component\Security\Core\User\User: plaintext …
tirenweb
  • 30,963
  • 73
  • 183
  • 303