Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
securityRemake
Overview
Overview
Details
Activity
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
Juan Guevara Mayta
securityRemake
Commits
b0df1303
Commit
b0df1303
authored
Jan 23, 2024
by
Mauro Paolo Josue Zuñiga Mallqui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIXED] SE REPARO UN ERROR CON LA VISTA MANTENIMIENTOUSUARIO.JSP
parent
9b04723f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
LoginServlet.java
.../com/mycompany/moduloseguridad/servlets/LoginServlet.java
+1
-0
sidebar.js
src/main/webapp/js/pages/sidebar.js
+1
-1
header.jsp
src/main/webapp/vistas/templates/header.jsp
+2
-3
No files found.
src/main/java/com/mycompany/moduloseguridad/servlets/LoginServlet.java
View file @
b0df1303
...
@@ -63,6 +63,7 @@ public class LoginServlet extends HttpServlet {
...
@@ -63,6 +63,7 @@ public class LoginServlet extends HttpServlet {
Cookie
cookieAuth
=
new
Cookie
(
"Authorization"
,
"Bearer "
+
respuesta
.
getString
(
"token"
));
Cookie
cookieAuth
=
new
Cookie
(
"Authorization"
,
"Bearer "
+
respuesta
.
getString
(
"token"
));
cookieAuth
.
setMaxAge
(
36000
);
//10horas
cookieAuth
.
setMaxAge
(
36000
);
//10horas
response
.
setHeader
(
"Set-Cookie"
,
"key=value; HttpOnly; SameSite=none"
);
response
.
addCookie
(
cookieAuth
);
response
.
addCookie
(
cookieAuth
);
}
else
{
}
else
{
responseHelper
.
setMessage
(
respuesta
.
getString
(
"message"
));
responseHelper
.
setMessage
(
respuesta
.
getString
(
"message"
));
...
...
src/main/webapp/js/pages/sidebar.js
View file @
b0df1303
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
const
httpRequestt
=
{
const
httpRequestt
=
{
getproyectos
()
{
getproyectos
()
{
return
ajaxRequestSendBody
({
return
ajaxRequestSendBody
({
url
:
'http
://pruebaintranet.sacooliveros.pe:8081/security-rest
/api/'
+
'proyecto/listarProyectoUsuario'
,
url
:
'http
s://security-rest.sacooliveros.pe
/api/'
+
'proyecto/listarProyectoUsuario'
,
type
:
'POST'
,
type
:
'POST'
,
headers
:
{
headers
:
{
"Content-type"
:
'application/json'
,
"Content-type"
:
'application/json'
,
...
...
src/main/webapp/vistas/templates/header.jsp
View file @
b0df1303
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
<!-- /global stylesheets -->
<!-- /global stylesheets -->
<script src="../js/lib/cookies.js" type="text/javascript"></script>
<script src="../js/lib/cookies.js" type="text/javascript"></script>
<script>
<script>
var Authorization = "<%=request.getSession().getAttribute("Authorization")%>";
var codigo = "<%=(String) request.getSession().getAttribute("codigo")%>";
var sidebar = <%=(String) request.getSession().getAttribute("menu")%>;
var sidebar = <%=(String) request.getSession().getAttribute("menu")%>;
var nombreUsuario = "<%=(String) request.getSession().getAttribute("nombre")%>";
var nombreUsuario = "<%=(String) request.getSession().getAttribute("nombre")%>";
var rolesUsuario = "<%=(String) request.getSession().getAttribute("roles")%>";
var rolesUsuario = "<%=(String) request.getSession().getAttribute("roles")%>";
</script>
</script>
\ No newline at end of file
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