예제 #1
0
 public function stepTwo()
 {
     Session::set('username', $_POST['username']);
     Session::set('email', $_POST['email']);
     Session::set('password', \Libs\Password::create($_POST['password']));
     $this->view->render('register/step_two');
 }
예제 #2
0
 function testIncorrectPassword()
 {
     $password = Password::create('someThing');
     $this->assertFalse(Password::verify('someThingElse', $password));
 }