Ejemplo n.º 1
0
 public function longLogin(BaseUser $user, $password)
 {
     $login_form = $this->getElement('form.login');
     $login_form->fillField('_username', $user->getUsername());
     $login_form->fillField('_password', $password);
     $login_form->pressButton('Login');
 }
Ejemplo n.º 2
0
 function __construct(FullCustomer $customer = null)
 {
     parent::__construct();
     $this->password = '';
     if ($customer) {
         $this->setCustomer($customer);
     }
 }
Ejemplo n.º 3
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->username = sprintf("Staff_%s", uniqid());
 }
Ejemplo n.º 4
0
 /**
  * @param $user
  */
 private function updateTwoFactor($secret, BaseUser $user)
 {
     $user->setGoogleAuthenticatorSecret($secret);
     $user_manager = $this->container->get('fos_user.user_manager');
     $user_manager->updateUser($user);
 }