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

Generating User Accounts with ZfcUser in ZF2

I'd like to generate user accounts in Zend Framework 2 with ZfcUser arbitrarily that I could then email to the user with either an activation link or some temporary credentials. I'm not sure if ZfcUser can be extended to do this securely, so I'm…
dperjar
  • 343
  • 2
  • 11
3
votes
1 answer

How to share zfcuser across subdomain in zend framework 2

I have in my application installed zfcuser module and everything works fine. I configured hostname router and here my problem starts, when I log in on main domain (http://example.com) everything is ok, but when I go to any subdomain…
Maciej
  • 314
  • 5
  • 17
3
votes
2 answers

How would I log a successful login

How would I log a successful login within the zfc-user module for the purpose of showing the user the last time he/she was successfully authorized? I'm thinking a listener as zfcuser uses events, but are unable to figure it out
bas
  • 628
  • 9
  • 22
2
votes
0 answers

Adding Email Verification At Registration For Zend2 ZFCUser

I have a working application of Zend2 Skeleton with ZFCUser handling the registration and login system. I know from the docs that ZFCUser does not handle registration verification "As of yet". But I would like to integrate it. I am new to MVC so I…
wuno
  • 9,547
  • 19
  • 96
  • 180
2
votes
2 answers

Extending ZfcUser's UserController in custom User's module

I have read Extending ZfcUser's UserController in custom module and and did everything as it was written but I still getting error: /vagrant/app/vendor/zf-commons/zfc-user/src/ZfcUser/Controller/UserController.php:69 You must supply a callable…
user4351771
2
votes
1 answer

How to disallow multiple parallel user sessions per login in ZF2?

I'm currently facing the situation, that the ZendFramework2 ZFCuser-Module does not have any options to prevent a user from logging in from two devices at the same time. We recently had a case, that two people were "account-sharing" and accidentally…
Sammy
  • 21
  • 5
2
votes
0 answers

zf2 BjyAuthorize Zfcuser with two different base layout

I have this is problem. In my ZF2 application I manage login system with byjauthorize and zfcuser, and I have two different base layout. One dedicated to the login page and one dedicated to the application when the user is logged in. This is code in…
dastan
  • 45
  • 6
2
votes
4 answers

ZFCUser redirect to custom URL after login

I'm trying to implement a function for the ZFCUser module that would detect the current URL, pass it on to the login page and once the users logs in, to redirect him to that URL. Has anyone tried to do this? I need to provide people with links to…
Mac
  • 73
  • 2
  • 6
2
votes
1 answer

ZF2 Generate navigation using zfcrbac zfcUser and hierarchical role strategy

I begin in zf2 and i have to handle Many to Many permissions/roles. Using ZfcRbac. So i make a mapping with User / Hierarchical Role (table name= role) / permissions And i make some guards with deny policy. My guard, mapping, database, are ok. My…
Greco Jonathan
  • 2,517
  • 2
  • 29
  • 54
2
votes
2 answers

Fatal error: Cannot use object of type User\Entity\User as array

The problem is: error: => Fatal error: Cannot use object of type User\Entity\User as array in ../module/User/view/user/index/index.phtml My class is: class IndexController extends…
user3333854
  • 41
  • 1
  • 2
  • 5
2
votes
0 answers

ZfcUser and the SessionHandler in Ratchet

I'm want to be able to view the ZfcUser sessions in the I/O server of Ratchet. However, out of the box only Symphony 2 Sessions are supported with the SessionProvider of Ratchet. And I seriously don't know what to do next to make this…
Sem
  • 4,477
  • 4
  • 33
  • 52
2
votes
3 answers

Cannot regenerate session id zend framework 2?

I used ZFcuser module for my admin panel . when I login into admin panel its returns error like this : Warning: session_regenerate_id(): Cannot regenerate session id - headers already sent in…
Chirag Shah
  • 1,463
  • 2
  • 18
  • 40
2
votes
1 answer

Set created by user reference on PrePersist in doctrine entity in zf2 project

In my zf2 project, I have doctrine 2 entities that reference the user entity as created by as the following: /** * @ORM\ManyToOne(targetEntity="User") * @ORM\JoinColumn(name="created_by", referencedColumnName="id") **/ protected $createdBy; and…
Mohammad ZeinEddin
  • 1,608
  • 14
  • 17
2
votes
1 answer

BjyAuthorize and PHPUnit

I'm starting working on unit tests for a Zend Framework 2 project using ZfcUser + BjyAuthorize. I'm not a unit test expert, so I found how to mock ZfcUser here. Now I also have to mock BjyAuthorize. Has anyone managed to do it before?
Guilhem Soulas
  • 1,975
  • 2
  • 18
  • 30
2
votes
2 answers

Role not found error

I'm trying to setup ZfcUser with BjyAuthorize. I'm getting the following error when trying to access the guarded route "/user". Fatal error: Uncaught exception 'Zend\Permissions\Acl\Exception\InvalidArgumentException' with message 'Role '3' not…
Brian
  • 58
  • 1
  • 6
1
2
3
12 13