forked from wallabag/wallabag
* public registration
* remove WSSE implementation * add oAuth2 implementation
This commit is contained in:
committed by
Jeremy Benoist
parent
8a60bc4cc2
commit
fcb1fba5c2
@ -13,7 +13,8 @@ class NewUserType extends AbstractType
|
||||
{
|
||||
$builder
|
||||
->add('username', 'text', array('required' => true))
|
||||
->add('password', 'password', array(
|
||||
->add('plainPassword', 'repeated', array(
|
||||
'type' => 'password',
|
||||
'constraints' => array(
|
||||
new Constraints\Length(array(
|
||||
'min' => 8,
|
||||
|
||||
24
src/Wallabag/CoreBundle/Form/Type/RegistrationType.php
Normal file
24
src/Wallabag/CoreBundle/Form/Type/RegistrationType.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Wallabag\CoreBundle\Form\Type;
|
||||
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
|
||||
class RegistrationType extends AbstractType
|
||||
{
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$builder->add('name');
|
||||
}
|
||||
|
||||
public function getParent()
|
||||
{
|
||||
return 'fos_user_registration';
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return 'wallabag_user_registration';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user