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
0
votes
3 answers

zfcuser - whitelist routes and all childroutes

I'am using ZfcUser module in my application to protect access to /admin route. As I want to block all childroutes of /admin, except for /login, /register etc. In order to do so, I've added a code from accepted answer here - Zend Framework 2 -…
ficus
  • 196
  • 2
  • 17
0
votes
1 answer

Restricting only few actions in zf2 using bjyauthorize

Consider that in a controller we have 10 actions in that 8 actions can be accessed by anyone but remaining two actions should be accessed by particular user roles. This I tried using by setting Guard\Controller, but using this 10 actions are…
Mahesh.D
  • 1,691
  • 2
  • 23
  • 49
0
votes
0 answers

ZFCuser keeping users

Is it possible to use accounts created by ZfcUser zf1 in zf2 project ? Actually, I have a users list created by ZFCuser module (zf1) and i want use the same list with zf2 project. If it's possible , How ?
Zakaria
  • 66
  • 1
  • 9
0
votes
1 answer

Zf3 Zfcuser redirect param does not work

Zfcuser provide an option to redirect to specified route with query param "redirect" like that: /user/login?redirect=/en/about Zfcuser 1.* version on ZF2 works perfectly. But recently I migrate to ZF3 and Zfcuser 2.0.0 version and noticed that this…
Ivo
  • 353
  • 2
  • 13
0
votes
1 answer

How to dynamically mock the Zfc User service

Situation: I am testing a Zend controller action, where a user has to login or otherwise will get redirected:
swaechter
  • 1,357
  • 3
  • 22
  • 46
0
votes
1 answer

Second ZfcRbac Assertion is not working | ZF2

I have added below code inside zfc_rbac.global.php: return [ 'zfc_rbac' => [ 'assertion_map' => [ 'isAuthorizedToAddUser' => 'Application\Assertions\WhoCanAddUser', 'isBranchOrOrgIdPresentIfNotAdmin' =>…
Vipul
  • 655
  • 2
  • 6
  • 22
0
votes
0 answers

Fatal Error On Zend Project Live On Server Random

I have a Zend2 project running on my localhost with no problems. The app runs perfect. I Uploaded it to my server and now it gets a fatal error but not every time. Sometimes it says this, Fatal error: Class name must be a valid object or a string…
wuno
  • 9,547
  • 19
  • 96
  • 180
0
votes
1 answer

Zfcuser add register fields

Am trying to add new register fields in zfcuser moudle in register. I have problem bcs new fields not rendered in register.phtml What i do: First i create new User entity in my custom module and extend \ZfcUser\Entity\User, and add new properties…
Ivan
  • 5,139
  • 11
  • 53
  • 86
0
votes
1 answer

Zfcuser route has a child route

I'm working on a ZF2 project, and using ZfcUser to manage website users. I just want to know is it possible to have a child route to the zfcuser route? Something like that, in the configuration of my module: return [ 'router' => [ …
user2711783
  • 65
  • 2
  • 10
0
votes
0 answers

How to customize ZfcUser module for impmenting in an existing module with extra elements in sign up

I have tried ZfcUser module using its documentation on GitHub https://github.com/ZF-Commons/ZfcUser Problem is I want to implement it on my existing project for Signup and Sign in and my database and signup page has many items in the form , while in…
Adi
  • 43
  • 10
0
votes
1 answer

Extending ZfcUser's UserController in custom module

In my custom Module I have a custom UserController that extends the ZfcUser vendor's UserController in order to customize the indexAction and registerAction. namesapce MyModule; class UserController extends ZfcUser\Controller\UserController { …
Thommy
  • 59
  • 1
  • 2
  • 8
0
votes
1 answer

ZF2 ZfcUser, BjyAuthorise, Logout issues

Getting logged out of the web application when: Double clicking any public anchor link (e.g. clicking about us twice in succession) Using ajax auto complete calls (e.g. with Jquery.autocomplete) Using CKeditor and uploading an image (KCFinder to…
JI-Web
  • 481
  • 6
  • 27
0
votes
1 answer

Zf2 ScnSocialAuth HybridAuth zfcuser and Routes

Using ZF2 to customise an Entity based on ZfcUser. Trying to use ScnSocialAuth and got a bit of a problem. The problem is that I am using custom routes ('/account' instead of '/user') and when implementing ScnSocialAuth I cannot get the social code…
JI-Web
  • 481
  • 6
  • 27
0
votes
0 answers

Easy ScnSocial Auth + Standard ZFC User in the login screen

I would like to know if its possible to implement an standard ZFCUser login + auth with ScnSocial auth in ZF2 and to even carry multiple signup procedures at the same time. I mean: User first day signs-up and logins with ZFC User standard system.…
SirLouen
  • 137
  • 10
0
votes
1 answer

ZendDeveloperTools not working with ZfcRbac

I installed ZfcRbac instead of BjyAuthorize. Toolbar of ZendDeveloperTools is partially working. I cannot find a reason for the following warning. What is missing in my setup ? Warning: Invalid argument supplied for foreach() in…
vlr
  • 780
  • 4
  • 16
  • 33