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

ZF2 ZfcUser cannot resolve "_form.phtml"

I cannot get ZfcUser to work with my application which is based on ZF2 skeleton. For all the routes (register, login, ...) I get the following error: Zend\View\Renderer\PhpRenderer::render: Unable to render template "_form.phtml"; resolver could…
Joe Beeker
  • 11
  • 1
1
vote
2 answers

ZfcUser ReCaptcha v2

I wanna add ReCaptcha version 2 from Google to ZfcUser RegisterForm. I did as mentioned in Zend Framework 2: How to properly replace Figlet with reCaptcha on zfcUser and it works fine. Then I added recaptcha of version 2 trough…
user4351771
1
vote
1 answer

ZfzUser Authentication Always fails

I have implemented ZfcUser in my application. The problem is that the authentication always fails even if the password is correct. I have digged into the problem. What I have noticed is that, the application retrieves password hash from the…
S. A. Malik
  • 3,465
  • 6
  • 37
  • 56
1
vote
2 answers

Unlink role - BjyAuthorize Doctirne

BjyAuthorize modifies the User entity and provides an addRole() method. This accepts a role object and populates the user_role_linker_table How is it possible to remove a role once it is added to a user? The associations are set in User: /** *…
1
vote
1 answer

zf2: how to inject service into custom form validator from listener

I am trying to apply custom validator when a new user (ZfcUser) registers to the system. The validator supposed to use a service. I am trying to inject service through the factory, but it looks like code in the factory never get a chance to run and…
vlr
  • 780
  • 4
  • 16
  • 33
1
vote
0 answers

ZF2 ZfcUser Registration Redirect

Based on this post: ZfcUser Redirect to page of my choice after Registration Trouble with redirection after registration. Returning a \zend\Http\Response object from the 'register.post' event does not redirect I am trying to redirect a newly…
JI-Web
  • 481
  • 6
  • 27
1
vote
1 answer

BjyAuthorize with ZfcUser and Doctrine - managing user_role_linker

I have implemented BjyAuthorize with ZfcUser and Doctrine and can successfully set up the roles and linked them to user_id in the user_role_linker table. Next I want to add a simple admin panel to get, add and remove users from the user_role_linker…
1
vote
1 answer

"Forgot password " for zfcuser

I am using zfcuser and zfcrbac. ZfcUser does not have "forgot password" (or reset password) functionality complete. What is the best module there to use for resetting password functionality ? Ideally, I'd like to use emails with tokenized links, but…
vlr
  • 780
  • 4
  • 16
  • 33
1
vote
2 answers

Customizing AuthenticationService to ZfcUser

I have a custom implementation of AuthenticationService that I would like to use in ZfcUser Module but I am able to set this class into the module. The implementation seems to be fixed. vendor\zf-commons\zfc-user\Module.php 'zfcuser_auth_service'…
1
vote
1 answer

ZF2 ZfcUser ScnSocialAuth signup+authentication Facebook

Issue: New user is not created when successfully authenticating with Facebook account. NOTE: I have setup a clean system from https://github.com/SocalNick/ScnSocialAuth [zip file download] and adjusted the Facebook ID and password from the Facebook…
1
vote
0 answers

ZfcRbac does not recognise my logged in user role

ZfcRbac does not recognise my Identity role for some reason. I've been on it for hours but it can't seem to get the roles from my identity, which is strange because it can definitely be asked from the authentication…
Ventus
  • 150
  • 1
  • 12
1
vote
0 answers

How to install (properly) ScnSocialAuth without using the SkeletonApp from ZF2

I read the README from https://github.com/SocalNick/ScnSocialAuth. I can not use the ZendSkeleton because I want to integrate it in an existing project. I'm quiet new and the README does not answer some question, like How do I integrate it with my…
Andy Powers
  • 75
  • 10
1
vote
2 answers

ManyToOne association for zfcuser doctrine entity with bjyauthorize

I'm using the zfcuser doctrine module for my zf2 project with bjyauthorize, which is working quite fine. Now I'd like to get the connected Country entity out of my User entity in User.php: /** * An example of how to implement a role aware user…
1
vote
0 answers

ZfcUser and Bjyauthorize: setup routing to different actions for different roles after authentication

I am new to Zend Framework 2. I am using ZfcUser and Bjyauthorize. I have three different roles: admin, instructor, and student. Each of them is supposed to get different views and access to different actions after authentication. I am familiar…
vlr
  • 780
  • 4
  • 16
  • 33
1
vote
2 answers

How do i use redirect with ZfcUser?

I want to forward unauthenticated request to ZfcUser login action, then redirect to original request after successful login. I have this code inside my controller action; // Check we are logged in. if (!$this->zfcUserAuthentication()->hasIdentity())…
srayner
  • 1,799
  • 4
  • 23
  • 39