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

How to handle a failed login with ZfcUser's LoginWidget?

In my Zend Framework 2 application I am using the zfcUserLoginWidget, a View Helper provided by ZfcUser. This View Helper is meant to embed the login form on another page. zfcUserLoginWidget(); ?> I use this View Helper in my…
Karsten
  • 406
  • 1
  • 3
  • 11
1
vote
1 answer

Showing error in ZF 2

I am using ZfcUser (https://github.com/ZF-Commons/ZfcUser) module with ZF2. I am logged in using facebook.After log in I am getting below error. Fatal error: Call to a member function getEmail() on a non-object in…
Foysal Vai
  • 1,365
  • 3
  • 13
  • 19
1
vote
1 answer

zfcUser two register forms?

I'm using zfcUser for registration and auth, and i have some question. User can register by 2 types of profile, and the forms are different, so the question is, what is the best practice to use few registration forms in zfcUser, on one page, using…
Cawa
  • 1,269
  • 3
  • 25
  • 44
1
vote
1 answer

ZfcUser authentication for an API

In the project I am currently working on, I have the following situation: there is a web application that is accessible for human users through a browser, where the user can manipulate data in a database (representing the state of household devices…
fedorSmirnov
  • 701
  • 3
  • 9
  • 19
1
vote
2 answers

Configuration in role based routing using BjyAuthorize is not working

Here is my bjyauthorize.global.php contents array( // set the 'guest' role as default (must be defined in a role provider) // 'default_role' => 'guest', /* this module uses a meta-role that…
regeint
  • 888
  • 2
  • 17
  • 38
1
vote
1 answer

How to setup multiple authentication adapters with fallback

I am trying to setup ZfcUser to authenticate with a fallback to LDAP. My zfcuser.global.php contains: 'auth_adapters' => array( 100 => 'ZfcUser\Authentication\Adapter\Db', 99 => 'ZfcUser\Authentication\Adapter\Ldap', ), I have created an…
Curtis Kelsey
  • 716
  • 8
  • 32
1
vote
0 answers

Porting CakePHP passwords to ZfcUser

I'm in the process of porting an old CakePHP (1.3.13) application to ZF2. In the ZF2 application I'm using ZfcUser for authentication and registration. However the Cake application has an existing userbase with hashed passwords and I would like to…
Ruben
  • 5,043
  • 2
  • 25
  • 49
1
vote
1 answer

SharedEventManger and __NAMESPACE__

I'm attempting to check for user login for every route as detailed in this ZfcUser issue: https://github.com/ZF-Commons/ZfcUser/issues/187 Attach an event to the MvcEvent::EVENT_ROUTE event - simple. However, I only want to protect my Admin module…
Peter Hough
  • 560
  • 4
  • 17
1
vote
1 answer

ZfcUser - How can I modify user object

I have modified ZfcUser register form in my module (Module.php) with two new fields "firstname" and "lastname" like this: public function onBootstrap($e) { $events = $e->getApplication()->getEventManager()->getSharedManager(); …
Marceli Po
  • 733
  • 1
  • 7
  • 24
1
vote
2 answers

ZF2 RoleUserBridge: not getting inserted after registering

Trying to use RoleUserBridge so that when registering using zfcuser, user_role_linker database table will get updated automatically. I have done the following: 1) successfully copied the directory in vendor. 2) copy linker.config.php to…
juworld
  • 140
  • 1
  • 15
1
vote
1 answer

ZF2 BjyAuthorize access control from database?

Hi i set up zend framework 2 + BjyAuthorize + ZfcUser running, now i need some help. Where to customize user register to chose roles? Make all controllers under / route public and /admin for authenticated users? How to configure access control for…
1
vote
1 answer

ZF2 getting doctrine service inside bootstrap zfcUser extendet event

I have been extending the ZfcUser I got the new fields working, and they are getting added to the db via doctrine2 no problem there. But now i need to add a links between the user and a payment table and a special Role system. Im trying to put this…
KatsuoRyuu
  • 321
  • 4
  • 19
1
vote
1 answer

ZfcUser extend User class with additional get function

I'm new to the Zend2 Framework and have installed ZfcUser with an added database column which I would like to access through: zfcUserIdentity()->getOrg(); ?> Any help on extending the User Class to access this variable would be…
Ryan Nel
  • 464
  • 2
  • 6
  • 18
1
vote
1 answer

How can i get user role in my actions

I am using zf2 with this two modules (zfc-user, bjyauthorize) and i want to get the user role from my actions
AbderrahimDz24
  • 366
  • 4
  • 13
1
vote
1 answer

Zend Framework 2 - ZFCUser action whitelisting does not work for rerouting

I'm using this function for whitelisting a few actions from the ZFCUser login. Everything works great unless I redirect to one of these whitelisted pages. For example I have the myFormAction which reroutes in case of an invalid form to itself or to…
Ron
  • 22,128
  • 31
  • 108
  • 206