Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sistema_mcid
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marcio neto
sistema_mcid
Commits
f9f01886
Commit
f9f01886
authored
Aug 30, 2023
by
sandroresende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corecao AppService
parent
c706e146
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
10 deletions
+17
-10
PropostaController.php
app/Http/Controllers/Propostas/PropostaController.php
+5
-5
ValidarCpfCnpj.php
app/Http/Requests/ValidarCpfCnpj.php
+1
-1
AppServiceProvider.php
app/Providers/AppServiceProvider.php
+11
-4
No files found.
app/Http/Controllers/Propostas/PropostaController.php
View file @
f9f01886
...
...
@@ -263,7 +263,7 @@ class PropostaController extends Controller
$entePublicoId
=
Crypt
::
encrypt
(
$entePublicoId
);
$cpfUsuario
=
Crypt
::
encrypt
(
$cpfUsuario
);
if
(
$moduloSistema
){
if
(
$moduloSistema
==
true
){
return
redirect
(
'/selecao/ente_publico/propostas'
);
}
else
{
return
redirect
(
'/ente_publico/propostas/'
.
$cpfUsuario
.
'/'
.
$entePublicoId
);
...
...
@@ -422,7 +422,7 @@ class PropostaController extends Controller
$entePublicoId
=
Crypt
::
encrypt
(
$entePublicoId
);
$cpfUsuario
=
Crypt
::
encrypt
(
$cpfUsuario
);
if
(
$moduloSistema
){
if
(
$moduloSistema
==
true
){
return
redirect
(
'/selecao/ente_publico/propostas'
);
}
else
{
return
redirect
(
'/ente_publico/propostas/'
.
$cpfUsuario
.
'/'
.
$entePublicoId
);
...
...
@@ -491,7 +491,7 @@ class PropostaController extends Controller
$entePublicoId
=
Crypt
::
encrypt
(
$entePublicoId
);
$cpfUsuario
=
Crypt
::
encrypt
(
$cpfUsuario
);
if
(
$moduloSistema
){
if
(
$moduloSistema
==
true
){
return
redirect
(
'/selecao/ente_publico/propostas'
);
}
else
{
return
redirect
(
'/ente_publico/propostas/'
.
$cpfUsuario
.
'/'
.
$entePublicoId
);
...
...
@@ -585,7 +585,7 @@ class PropostaController extends Controller
$entePublicoId
=
Crypt
::
encrypt
(
$entePublicoId
);
$cpfUsuario
=
Crypt
::
encrypt
(
$cpfUsuario
);
if
(
$moduloSistema
){
if
(
$moduloSistema
==
true
){
return
redirect
(
'/selecao/ente_publico/propostas'
);
}
else
{
return
redirect
(
'/ente_publico/propostas/'
.
$cpfUsuario
.
'/'
.
$entePublicoId
);
...
...
@@ -676,7 +676,7 @@ class PropostaController extends Controller
$entePublicoId
=
Crypt
::
encrypt
(
$entePublicoId
);
$cpfUsuario
=
Crypt
::
encrypt
(
$cpfUsuario
);
if
(
$moduloSistema
){
if
(
$moduloSistema
==
true
){
return
redirect
(
'/selecao/ente_publico/propostas'
);
}
else
{
return
redirect
(
'/ente_publico/propostas/'
.
$cpfUsuario
.
'/'
.
$entePublicoId
);
...
...
app/Http/Requests/ValidarCpfCnpj.php
View file @
f9f01886
...
...
@@ -39,7 +39,7 @@ class ValidarCpfCnpj extends FormRequest
'ente_publico_id.cnpj'
=>
'O cnpj está inválido.'
,
'txt_cpf_usuario.required'
=>
'O campo cpf é obrigatório.'
,
'txt_cpf_usuario.cpf'
=>
'O cpf está inválido.'
,
'txt_cpf_usuario.usuariobloqueado'
=>
'Usuário bloqueado ou excluído do sistema.'
,
'txt_cpf_usuario.usuariobloqueado'
=>
'Usuário
Inexistente,
bloqueado ou excluído do sistema.'
,
...
...
app/Providers/AppServiceProvider.php
View file @
f9f01886
...
...
@@ -22,12 +22,19 @@ class AppServiceProvider extends ServiceProvider
Validator
::
extend
(
'usuariobloqueado'
,
function
(
$attribute
,
$value
,
$parameters
,
$validator
){
$usuario
=
User
::
where
(
'txt_cpf_usuario'
,
$value
)
->
first
();
$usuario
=
User
::
where
(
'txt_cpf_usuario'
,
$value
)
->
get
();
if
(
$usuario
->
status_usuario_id
>=
3
){
return
false
;
if
(
count
(
$usuario
)
>
0
){
$usuario
=
User
::
where
(
'txt_cpf_usuario'
,
$value
)
->
first
();
if
(
$usuario
->
status_usuario_id
>=
3
){
return
false
;
}
else
{
return
true
;
}
}
else
{
return
true
;
return
false
;
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment