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

convert user inserted password into zfcuser encrypted password

I am try to make profile update page, were people can able to change profile details. and they need password to update profile. I am using zfcuser module for log-in and registration. i don't know which encryption technique is used by zfcuser. now i…
Himanshu Bhardiya
  • 1,047
  • 14
  • 37
0
votes
1 answer

Save the user_id of a logged in user when submitting a form in ZF2

I want to save the users user_id along the data he submits via a form. This is in my controller: The controller: $request = $this->getRequest(); if ($request->isPost()) { $testing = new Testing(); …
0
votes
1 answer

ZF2 dissable layout in view templates (phtml files)

i was trying to dissable layout in my override of zfc user login page here is what i tried so far : $this->viewmodel()->getCurrent()->setTerminal(true); $this->viewmodel()->getRoot()->setTerminal(true);
Sina Miandashti
  • 2,087
  • 1
  • 26
  • 40
0
votes
1 answer

redirect after authentication in zend framework 2

I am trying to implement a control to check if the password is expired whenever a user authenticates. I am using a ListenerAggregateInterface to listen to the ZfcUser event authentication.success. After I perform my check I am not able to redirect…
marcosh
  • 8,780
  • 5
  • 44
  • 74
0
votes
2 answers

How to teste an action on Zend Framework 2 and ZfcUser with zfcUserIdentity Helper

Following this way Unit Testing a Zend Framework 2 application I am work with ZfcUser and try to test some action in my controller. But when the test is executed I get and error because I am using $this->zfcUserIdentity() to get the user name in my…
0
votes
1 answer

Zfcuser Example - Integrating in real application

I've been unable to find any example of how actually to use zfcuser to authenticate users and prevent access to a website or routes. My website successfully works when I access /user/login, but this is useless in a real application. What I really…
JOAXLE
  • 1
  • 1
  • 2
0
votes
1 answer

ZfcUserLoginWidget on Home Page Throws Fatal error: Call to undefined method ZfcUser\Options\ModuleOptions::getEnableDefaultEntities()

I am using Zend Framework 2, Bootstrap 3, ZFCUser, ZFCDoctrineORMUser and Doctrine in tandem. I found that the ZfcUserLoginWidget can be called directly from my index.phtml. However, when I do this, the following error is thrown: Fatal error: Call…
SidC
  • 3,175
  • 14
  • 70
  • 132
0
votes
1 answer

capturing the login event in zendframework 2

I want to capture the loggin event in zendframework2 and then update the database when the user last logged in. i am aware that if i do the following in the onBootstrap(MVCEvent $e) of my module i will be able to capture the event etc:…
Paul Kendal
  • 559
  • 9
  • 24
0
votes
0 answers

Extending & overriding ZfcUser behaviour

I'm using ZfcUser with ht-user-registration and scn-social-auth and there are 2 fairly minor enhancements I want to achieve to extend my implementation, but I'm not having much success so far: ht-user-registration sends new users an email after…
urchino
  • 340
  • 3
  • 13
0
votes
1 answer

How to handle many users simultaneously using Zend 2 and ZfcUser plugin?

I'm making web app that will be fully based on Ajax requests. As I understand the only way to achieve that goal is to send identity and password with every Ajax request or am I wrong? I'd like to use ZfcUser to perform actions connected with…
0
votes
2 answers

Unable to attach to zfcUser login event on zend framework 2

I want to attach to the login event on zfcUser. I am able to attach to other zfcUser event like register, change email, change password; the triggers for those events are held in ZfcUser\Service\User i.e: public function register(array $data) { …
Paul Kendal
  • 559
  • 9
  • 24
0
votes
0 answers

GoalioRememberMeDoctrineORM how to make it work? (Remember Me feature for ZfcUser)

ive just recently started with zend2, now im trying to use GoalioRememberMe with doctrine but i cant seem to make it work. The checkbox for the remember me functionality appears correctly. goaliorememberme.global.php is in config->autoload ive…
0
votes
0 answers

ZfcUser custom Database Column names

In my database i have a table "myuser". I have "usr_id", "usr_username", "usr_password" etc. fields. But ZfcUser always try to save "username", "password" etc. How can i define custom column names for ZfcUser? I am using Zend/DB/Tablegateway
Nikitas
  • 1,013
  • 13
  • 27
0
votes
2 answers

ZfcUser redirect dynamic url after login

I'm learning to develop a website with ZF2. I have downloaded 2 modules ZfcUser and BjyAuthorize. The configurations was fairly straight forward after i read the documentations. How ever i did not find any solution for the following…
Wermerb
  • 1,039
  • 3
  • 15
  • 30
0
votes
1 answer

Zend Framework 2 authentication using Facebook

I am using SocalNick/ScnSocialAuth (https://github.com/SocalNick/ScnSocialAuth) library with Zend Framework 2 for my project. While I am trying to login using Facebook I am getting folowing error message. Fatal error: Call to a member function…
Foysal Vai
  • 1,365
  • 3
  • 13
  • 19