Commit 9c91a45ce29ab9586105dbec753cd0dea5c01325
Committed by
Eduardo Santos
1 parent
0e2b808f
Exists in
master
and in
1 other branch
Adiciona campos usuário e senha ao servidor de autenticação
Showing
5 changed files
with
70 additions
and
1 deletions
Show diff stats
.gitignore
| @@ -30,6 +30,7 @@ web/assetic/ | @@ -30,6 +30,7 @@ web/assetic/ | ||
| 30 | 30 | ||
| 31 | # Ignora htaccess | 31 | # Ignora htaccess |
| 32 | .htaccess | 32 | .htaccess |
| 33 | +.idea | ||
| 33 | 34 | ||
| 34 | # Ignora arquivo do importador | 35 | # Ignora arquivo do importador |
| 35 | src/Cacic/CommonBundle/Resources/data/importacao.zip | 36 | src/Cacic/CommonBundle/Resources/data/importacao.zip |
src/Cacic/CommonBundle/Entity/ServidorAutenticacao.php
| @@ -444,4 +444,60 @@ class ServidorAutenticacao | @@ -444,4 +444,60 @@ class ServidorAutenticacao | ||
| 444 | { | 444 | { |
| 445 | return $this->inAtivo; | 445 | return $this->inAtivo; |
| 446 | } | 446 | } |
| 447 | + /** | ||
| 448 | + * @var string | ||
| 449 | + */ | ||
| 450 | + private $senha; | ||
| 451 | + | ||
| 452 | + | ||
| 453 | + /** | ||
| 454 | + * Set senha | ||
| 455 | + * | ||
| 456 | + * @param string $senha | ||
| 457 | + * @return ServidorAutenticacao | ||
| 458 | + */ | ||
| 459 | + public function setSenha($senha) | ||
| 460 | + { | ||
| 461 | + $this->senha = $senha; | ||
| 462 | + | ||
| 463 | + return $this; | ||
| 464 | + } | ||
| 465 | + | ||
| 466 | + /** | ||
| 467 | + * Get senha | ||
| 468 | + * | ||
| 469 | + * @return string | ||
| 470 | + */ | ||
| 471 | + public function getSenha() | ||
| 472 | + { | ||
| 473 | + return $this->senha; | ||
| 474 | + } | ||
| 475 | + /** | ||
| 476 | + * @var string | ||
| 477 | + */ | ||
| 478 | + private $usuario; | ||
| 479 | + | ||
| 480 | + | ||
| 481 | + /** | ||
| 482 | + * Set usuario | ||
| 483 | + * | ||
| 484 | + * @param string $usuario | ||
| 485 | + * @return ServidorAutenticacao | ||
| 486 | + */ | ||
| 487 | + public function setUsuario($usuario) | ||
| 488 | + { | ||
| 489 | + $this->usuario = $usuario; | ||
| 490 | + | ||
| 491 | + return $this; | ||
| 492 | + } | ||
| 493 | + | ||
| 494 | + /** | ||
| 495 | + * Get usuario | ||
| 496 | + * | ||
| 497 | + * @return string | ||
| 498 | + */ | ||
| 499 | + public function getUsuario() | ||
| 500 | + { | ||
| 501 | + return $this->usuario; | ||
| 502 | + } | ||
| 447 | } | 503 | } |
| 448 | \ No newline at end of file | 504 | \ No newline at end of file |
src/Cacic/CommonBundle/Form/Type/ServidorAutenticacaoType.php
| @@ -41,7 +41,9 @@ class ServidorAutenticacaoType extends AbstractType | @@ -41,7 +41,9 @@ class ServidorAutenticacaoType extends AbstractType | ||
| 41 | 'label' => 'Versão' | 41 | 'label' => 'Versão' |
| 42 | ) | 42 | ) |
| 43 | ); | 43 | ); |
| 44 | - | 44 | + |
| 45 | + $builder->add('usuario', null, array( 'label'=>'Usuário do LDAP' )); | ||
| 46 | + $builder->add('senha', null, array( 'label'=>'Senha do usuário' )); | ||
| 45 | $builder->add('teObservacao', null, array( 'label'=>'Observação' )); | 47 | $builder->add('teObservacao', null, array( 'label'=>'Observação' )); |
| 46 | $builder->add('teAtributoIdentificador', null,array('label'=>'Identificador')); | 48 | $builder->add('teAtributoIdentificador', null,array('label'=>'Identificador')); |
| 47 | $builder->add('teAtributoRetornaNome', 'text',array('label'=>'Retorno de Nome Completo')); | 49 | $builder->add('teAtributoRetornaNome', 'text',array('label'=>'Retorno de Nome Completo')); |
src/Cacic/CommonBundle/Resources/config/doctrine/ServidorAutenticacao.orm.yml
| @@ -85,4 +85,12 @@ Cacic\CommonBundle\Entity\ServidorAutenticacao: | @@ -85,4 +85,12 @@ Cacic\CommonBundle\Entity\ServidorAutenticacao: | ||
| 85 | fixed: true | 85 | fixed: true |
| 86 | nullable: false | 86 | nullable: false |
| 87 | column: in_ativo | 87 | column: in_ativo |
| 88 | + usuario: | ||
| 89 | + type: text | ||
| 90 | + nullable: true | ||
| 91 | + column: usuario | ||
| 92 | + senha: | ||
| 93 | + type: text | ||
| 94 | + nullable: true | ||
| 95 | + column: senha | ||
| 88 | lifecycleCallbacks: { } | 96 | lifecycleCallbacks: { } |
src/Cacic/CommonBundle/Resources/views/ServidorAutenticacao/cadastrar.html.twig
| @@ -48,6 +48,8 @@ | @@ -48,6 +48,8 @@ | ||
| 48 | {{ form_row(form.idTipoProtocolo, {'form_type': 'horizontal'}) }} | 48 | {{ form_row(form.idTipoProtocolo, {'form_type': 'horizontal'}) }} |
| 49 | {{ form_row(form.nuVersaoProtocolo, {'form_type': 'horizontal'}) }} | 49 | {{ form_row(form.nuVersaoProtocolo, {'form_type': 'horizontal'}) }} |
| 50 | {{ form_row(form.nuPortaServidorAutenticacao, {'form_type': 'horizontal'}) }} | 50 | {{ form_row(form.nuPortaServidorAutenticacao, {'form_type': 'horizontal'}) }} |
| 51 | + {{ form_row(form.usuario, {'form_type': 'horizontal'}) }} | ||
| 52 | + {{ form_row(form.senha, {'form_type': 'horizontal'}) }} | ||
| 51 | {{ form_row(form.teObservacao, {'form_type': 'horizontal'}) }} | 53 | {{ form_row(form.teObservacao, {'form_type': 'horizontal'}) }} |
| 52 | {{ form_row(form.inAtivo, {'form_type': 'horizontal'}) }} | 54 | {{ form_row(form.inAtivo, {'form_type': 'horizontal'}) }} |
| 53 | </div> | 55 | </div> |