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
2fbd6d3b
Commit
2fbd6d3b
authored
Aug 02, 2023
by
sandroresende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correcao autenticacao
parent
350fb9e7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
21 deletions
+23
-21
RedirecionarUsuario.php
app/Http/Middleware/RedirecionarUsuario.php
+8
-8
RedirectIfAuthenticated.php
app/Http/Middleware/RedirectIfAuthenticated.php
+4
-0
login.blade.php
resources/views/auth/login.blade.php
+11
-13
ListaPropostas.blade.php
.../views/modulo_propostas/proposta/ListaPropostas.blade.php
+0
-0
No files found.
app/Http/Middleware/RedirecionarUsuario.php
View file @
2fbd6d3b
...
...
@@ -18,22 +18,22 @@ class RedirecionarUsuario
public
function
handle
(
$request
,
Closure
$next
)
{
$usuario
=
Auth
::
user
();
$modulo
=
ModuloSistema
::
select
(
'bln_ativo'
)
->
where
(
'id'
,
$usuario
->
modulo_sistema_id
)
->
firstOrFail
();
$sistemaAtivo
=
$modulo
->
bln_ativo
;
if
(
$sistemaAtivo
){
if
(
$usuario
->
status_usuario_id
==
2
){
return
redirect
(
'/usuario/primeiro_acesso'
);
flash
()
->
info
(
"Sistema em desenvolvimento"
,
"Módulo Ente Público em desenvolvimento"
);
Auth
::
logout
();
return
redirect
(
'/'
);
return
redirect
(
'/usuario/primeiro_acesso'
);
}
elseif
(
!
$usuario
->
bln_aceite_termo
){
return
redirect
(
'/usuario/termo_responsabilidade'
);
}
else
{
}
else
{
if
(
$usuario
->
status_usuario_id
>=
3
){
flash
()
->
erro
(
"Erro"
,
"Usuário sem permissão ativa para acessar o Sistema"
);
Auth
::
logout
();
...
...
@@ -41,7 +41,7 @@ class RedirecionarUsuario
}
else
{
if
(
$usuario
->
modulo_sistema_id
==
1
){
return
$next
(
$request
);
}
elseif
(
$usuario
->
modulo_sistema_id
==
1
){
}
elseif
(
$usuario
->
modulo_sistema_id
==
2
){
return
redirect
(
'/home_ente_publico'
);
}
else
{
flash
()
->
erro
(
"Erro"
,
"Não existe usuário com esses dados."
);
...
...
app/Http/Middleware/RedirectIfAuthenticated.php
View file @
2fbd6d3b
...
...
@@ -17,6 +17,10 @@ class RedirectIfAuthenticated
*/
public
function
handle
(
$request
,
Closure
$next
,
$guard
=
null
)
{
if
(
Auth
::
guard
(
$guard
)
->
check
())
{
return
redirect
(
'/home'
);
}
...
...
resources/views/auth/login.blade.php
View file @
2fbd6d3b
...
...
@@ -85,6 +85,15 @@
<span
class=
"br-divider lg my-3"
></span>
<p>
Identifique-se no Sistema de Gerenciamento com:
</p>
<span
class=
"br-divider dashed my-3"
></span>
{{ $mensagem }}{{ Session::get('mensagem')}}
@if (!empty($mensagem))
<div
class=
"alert alert-warning text-center"
role=
"alert"
>
<span
class=
"help-block"
>
<strong>
{{ $mensagem }}
</strong>
</span>
</div>
@endif
<div
class=
"br-input large input-button"
>
<label
for=
"input-login-small"
>
Usuário
</label>
...
...
@@ -92,13 +101,7 @@
<button
class=
"br-button"
type=
"button"
aria-label=
"Botão de ação"
><i
class=
"fas fa-user"
aria-hidden=
"true"
></i>
</button>
</div>
@if ($errors->has('email'))
<span
class=
"feedback danger"
role=
"alert"
>
<i
class=
"fas fa-times-circle"
aria-hidden=
"true"
></i>
{{ $errors->first('email') }}
</span>
@endif
</br>
<div
class=
"br-input large input-button"
>
<label
for=
"input-login-small"
>
Senha
</label>
...
...
@@ -106,12 +109,7 @@
<button
class=
"br-button"
type=
"button"
aria-label=
"Botão de ação"
><i
class=
"fas fa-lock"
aria-hidden=
"true"
></i>
</button>
</div>
@if ($errors->has('password'))
<span
class=
"feedback danger"
role=
"alert"
>
<i
class=
"fas fa-times-circle"
aria-hidden=
"true"
></i>
{{ $errors->first('password') }}
</span>
@endif
<div
class=
"form-group row"
>
<div
class=
"col offset-md-12"
>
<a
class=
"btn btn-link"
href=
"{{ route('password.request') }}"
>
...
...
resources/views/modulo_propostas/proposta/ListaPropostas
Ente
.blade.php
→
resources/views/modulo_propostas/proposta/ListaPropostas.blade.php
View file @
2fbd6d3b
File moved
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