Questions tagged [zfcuser]

ZfcUser is a module for use with Zend Framework 2 in PHP. It handles user authentication. It is part of the Zend Framework Commons suite of modules.

ZfcUser is a zend framework module for handling User authentication + registration. It work with Zend DB out of Box. It provide following features.

  • Authenticate via username, email, or both
  • Registration
  • CSRF Protection

Their are plugin for this modules for work with Doctrine 2 & Mongo DB ODM

194 questions
1
vote
2 answers

Different login states when using www vs no www

I am using zfc user and am having issues with users being logged in/out based on web address. If the user logs in at www.foo.com they are able to access all their pages. However if they move to foo.com they must re log in. How can I prevent this?…
Matt
  • 383
  • 1
  • 5
  • 20
1
vote
2 answers

Zend Framework 2. ZfcUser. Authentication error with right email/pass when i added new element in login form

I got authentication error with right email/pass of registered user when i added new element in login form in ZfcUser. I added new element in bootstrap function with this lines:
mcfly's
  • 123
  • 1
  • 7
1
vote
1 answer

BjyAuthorize configuration for resources

I configured my BjyAuthorised using SamUser and other resources online. I thought the following configuration suppose to block all users but 'admin'. However, role of a user does not affect the result. Any user can access this resource. Please…
vlr
  • 780
  • 4
  • 16
  • 33
1
vote
1 answer

How to create my own layout template and divide it in header.phtml, content and footer.phml? Zf2

I'm learning Zend Framework 2 and walked already through the famous Album tutorial. So I've a basic understanding what’s going on but unfortunately I miss a fundamental part about layouts. I want to build a basic Web application that supposed to…
Stefan
  • 8,456
  • 3
  • 29
  • 38
1
vote
0 answers

new user not working in zf2 (bjyauthorize, zfcuser, zfcadmin, etc) application

I have a zf2 application with a handful of users that are designated as admins. I want to add an additional admin user, but have been unable to make it work. I'm authenticating with ZfcUserLdap. With the existing user, authentication goes well and…
Marty
  • 582
  • 4
  • 17
1
vote
0 answers

BjyAuthorize: Parent Role id "user" does not exist

I'm having a Parent Role id "user" does not exist error What I'm trying to get BjyAuthorize to work. In my config, I have 'bjyauthorize' => array( // Using the authentication identity provider, which basically reads the roles from the auth…
juworld
  • 140
  • 1
  • 15
1
vote
1 answer

How to add custom fields in ZFC-user module for zend 2 without doctrine?

I have tried using creating a different module and attaching the ZfcUser\Form\Register over init method. But it wasn't working. I want to add few custom fields, with changing any thing in the vendor dir, as is it not a good practice. I also tried…
Wiki
  • 43
  • 5
1
vote
0 answers

ZfcUser - state always null on registration

I am trying to implement ZfcUser in my first Zend Framework 2 project. I have run the SQL to create the User Table and copied the zfcuser.global.php into the autoload folder. I want to use the "state" column in the db.I was thinking that if I change…
Luka
  • 748
  • 2
  • 9
  • 36
1
vote
2 answers

remove cookies from Zf2 Controller

I am trying to remove cookies from my controller UserController for ZfcUser Module. When the user logs out, I want to delete all cookies. For example, I am setting cookies in the view: setcookie("var", $value); LogoutAction : public function…
Khalid.sgh
  • 33
  • 2
  • 7
1
vote
1 answer

ZfcUserDoctrineMongoODM Configuration examples

I am trying to configure ZendFramwork 2 to use MongoDB as the storage for user Authentication. I already have installed what I believe are the correct modules and have a correctly installed instance of ZF2 running on Nginx. I also have an instance…
Darren B
  • 23
  • 3
1
vote
2 answers

How to use two collections to authenticate zfcuser?

I use Doctrine and MongoDB ODM modules at my zf2 application. ZfcUser is used for authorization. Is there a way to use two collections, say users and clients to authenticate via zfcuser+doctrine? I am curious, if there is a way to combine two mongo…
shukshin.ivan
  • 11,075
  • 4
  • 53
  • 69
1
vote
1 answer

Dynamic Navigation depending on Login Status in Zend Framework 2

I've got a small login form in my top navbar with a input fields EMAIL, PASSWORD and a sign in button (see image below). How can I replace it depending on the login status from a user? If a user is logged in, a dropdown should appear where he can…
Andy Powers
  • 75
  • 10
1
vote
0 answers

How to save ZfcUser display name

I'm trying to save the display name of a user account using ZfcUser as a base to create my own API, but unfortunately I couldn't. This is my code: $service = $this->getUserService(); $form = $this->getPostData(); $post = array( "email" =>…
1
vote
1 answer

ZF2 Error trying to use ZfcUser\Service\User::register method to register User from another controller

I want to register a user using ZfcUser and add a model to the database within one form. So I extended the registration form and validate the data by giving the postdata to different forms like this: namespace Application\Controller; use…
DonL
  • 123
  • 6
1
vote
1 answer

How to change Zfcuser form error message?

I'm trying to change the validation message for zfcuser register form. I have try to change the message by using following code in bootstrap.php: $filter->get('email')->setErrorMessage('Email address has been used',…
Ewe Tek Min
  • 855
  • 10
  • 19