Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
trismegisto-planilla
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
Luis Gangas
trismegisto-planilla
Commits
eef784ab
Commit
eef784ab
authored
Nov 26, 2018
by
Juan José Rojas Rojas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ADD] ip to localhost
parent
f4876304
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
FichaMysqlDAO.java
src/java/trismegistoplanilla/mysqldao/FichaMysqlDAO.java
+1
-1
PersonaMysqlDAO.java
src/java/trismegistoplanilla/mysqldao/PersonaMysqlDAO.java
+1
-1
FichaSqlserverDAO.java
...a/trismegistoplanilla/sqlserverdao/FichaSqlserverDAO.java
+1
-1
PersonaSqlserverDAO.java
...trismegistoplanilla/sqlserverdao/PersonaSqlserverDAO.java
+1
-1
Variables.java
src/java/trismegistoplanilla/utilities/Variables.java
+1
-1
web.xml
web/WEB-INF/web.xml
+1
-1
No files found.
src/java/trismegistoplanilla/mysqldao/FichaMysqlDAO.java
View file @
eef784ab
...
...
@@ -2121,7 +2121,7 @@ public class FichaMysqlDAO implements FichaDAO {
String
token
=
rsObtenerToken
.
getString
(
"token"
);
// enviar correo con el link encriptado
String
paramUrl
=
"http://
172.16.2.91
:8080/TrismegistoPlanilla/TokenFichaServlet"
;
String
paramUrl
=
"http://
localhost
:8080/TrismegistoPlanilla/TokenFichaServlet"
;
String
paramAccion
=
EncryptAction
.
Encriptar
(
"validarTokenFicha"
,
"TR1SM3G1ST0-PL4N1LL4"
);
String
paramId
=
EncryptAction
.
Encriptar
(
String
.
valueOf
(
codigoTokenFicha
),
"TR1SM3G1ST0-ID-PL4N1LL4"
);
...
...
src/java/trismegistoplanilla/mysqldao/PersonaMysqlDAO.java
View file @
eef784ab
...
...
@@ -287,7 +287,7 @@ public class PersonaMysqlDAO implements PersonaDAO {
String
encriptarID
=
Encriptar
.
encriptar
(
String
.
valueOf
(
codigoTokenFicha
),
"TR1SM3G1ST0-ID-PL4N1LL4-SO"
);
String
[]
idArr
=
Encriptar
.
reemplazar
(
encriptarID
);
c
.
setMensaje
(
EmailDesign
.
correoDesign
(
CodeVerification
,
"http://
172.16.2.91
:8080/TrismegistoPlanilla/TokenFichaServlet?accion="
+
EncryptAction
.
Encriptar
(
"validarTokenFicha"
,
"TR1SM3G1ST0-PL4N1LL4"
)
+
"&id="
+
EncryptAction
.
Encriptar
(
String
.
valueOf
(
codigoTokenFicha
),
"TR1SM3G1ST0-ID-PL4N1LL4"
)
+
"&token="
+
token
));
c
.
setMensaje
(
EmailDesign
.
correoDesign
(
CodeVerification
,
"http://
localhost
:8080/TrismegistoPlanilla/TokenFichaServlet?accion="
+
EncryptAction
.
Encriptar
(
"validarTokenFicha"
,
"TR1SM3G1ST0-PL4N1LL4"
)
+
"&id="
+
EncryptAction
.
Encriptar
(
String
.
valueOf
(
codigoTokenFicha
),
"TR1SM3G1ST0-ID-PL4N1LL4"
)
+
"&token="
+
token
));
CorreoMysqlDAO
correo
=
new
CorreoMysqlDAO
();
if
(
correo
.
enviarCorreo
(
c
))
{
response
.
setStatus
(
true
);
...
...
src/java/trismegistoplanilla/sqlserverdao/FichaSqlserverDAO.java
View file @
eef784ab
...
...
@@ -1991,7 +1991,7 @@ public class FichaSqlserverDAO implements FichaDAO {
String
token
=
rsObtenerToken
.
getString
(
"token"
);
// enviar correo con el link encriptado
String
paramUrl
=
"http://
172.16.2.91
:8080/TrismegistoPlanilla/TokenFichaServlet"
;
String
paramUrl
=
"http://
localhost
:8080/TrismegistoPlanilla/TokenFichaServlet"
;
// String paramUrl = "http://app8.sacooliveros.edu.pe:8080/TrismegistoPlanilla/TokenFichaServlet";
String
paramAccion
=
EncryptAction
.
Encriptar
(
"validarTokenFicha"
,
"TR1SM3G1ST0-PL4N1LL4"
);
String
paramId
=
EncryptAction
.
Encriptar
(
String
.
valueOf
(
codigoTokenFicha
),
"TR1SM3G1ST0-ID-PL4N1LL4"
);
...
...
src/java/trismegistoplanilla/sqlserverdao/PersonaSqlserverDAO.java
View file @
eef784ab
...
...
@@ -283,7 +283,7 @@ public class PersonaSqlserverDAO implements PersonaDAO {
String
encriptarID
=
Encriptar
.
encriptar
(
String
.
valueOf
(
codigoTokenFicha
),
"TR1SM3G1ST0-ID-PL4N1LL4-SO"
);
String
[]
idArr
=
Encriptar
.
reemplazar
(
encriptarID
);
c
.
setMensaje
(
EmailDesign
.
correoDesign
(
CodeVerification
,
"http://
172.16.2.91
:8080/TrismegistoPlanilla/TokenFichaServlet?accion="
+
EncryptAction
.
Encriptar
(
"validarTokenFicha"
,
"TR1SM3G1ST0-PL4N1LL4"
)
+
"&id="
+
EncryptAction
.
Encriptar
(
String
.
valueOf
(
codigoTokenFicha
),
"TR1SM3G1ST0-ID-PL4N1LL4"
)
+
"&token="
+
token
));
c
.
setMensaje
(
EmailDesign
.
correoDesign
(
CodeVerification
,
"http://
localhost
:8080/TrismegistoPlanilla/TokenFichaServlet?accion="
+
EncryptAction
.
Encriptar
(
"validarTokenFicha"
,
"TR1SM3G1ST0-PL4N1LL4"
)
+
"&id="
+
EncryptAction
.
Encriptar
(
String
.
valueOf
(
codigoTokenFicha
),
"TR1SM3G1ST0-ID-PL4N1LL4"
)
+
"&token="
+
token
));
CorreoSqlserverDAO
correo
=
new
CorreoSqlserverDAO
();
if
(
correo
.
enviarCorreo
(
c
))
{
response
.
setStatus
(
true
);
...
...
src/java/trismegistoplanilla/utilities/Variables.java
View file @
eef784ab
...
...
@@ -3,7 +3,7 @@ package trismegistoplanilla.utilities;
public
class
Variables
{
public
static
String
BD_NAME
=
"planillabd"
;
public
static
String
BD_HOST
=
"
172.16.2.91
"
;
public
static
String
BD_HOST
=
"
localhost
"
;
public
static
String
MYSQL_NUEVO_BD_NAME
=
"nuevo"
;
public
static
String
MYSQL_NUEVO_BD_HOST
=
"172.16.2.43"
;
...
...
web/WEB-INF/web.xml
View file @
eef784ab
...
...
@@ -282,7 +282,7 @@
</servlet-mapping>
<session-config>
<session-timeout>
3
0
9000
0
</session-timeout>
</session-config>
<error-page>
...
...
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