Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
UyTube_obligatorio_PdA
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Juan José Álvarez Pérez
UyTube_obligatorio_PdA
Commits
01c75f7d
Commit
01c75f7d
authored
5 years ago
by
Lucas Garrido
Browse files
Options
Downloads
Patches
Plain Diff
solucion de password
parent
61300d77
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
UyTube_web/web/AltaUsuario.jsp
+22
-5
22 additions, 5 deletions
UyTube_web/web/AltaUsuario.jsp
UyTube_web/web/IniciarSesion.jsp
+0
-2
0 additions, 2 deletions
UyTube_web/web/IniciarSesion.jsp
UyTube_web/web/ModificarUsuario.jsp
+20
-5
20 additions, 5 deletions
UyTube_web/web/ModificarUsuario.jsp
with
42 additions
and
12 deletions
UyTube_web/web/AltaUsuario.jsp
+
22
−
5
View file @
01c75f7d
...
...
@@ -7,6 +7,22 @@
<%@page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%>
<!DOCTYPE html>
<html
lang=
"es"
>
<script>
var
check
=
function
()
{
if
(
document
.
getElementById
(
'
input_Contrasenia
'
).
value
==
document
.
getElementById
(
'
input_Repetir_contraseña
'
).
value
)
{
document
.
getElementById
(
'
message
'
).
style
.
color
=
'
green
'
;
document
.
getElementById
(
'
message
'
).
innerHTML
=
'
Correcto
'
;
document
.
getElementById
(
"
btn_Registrarme
"
).
disabled
=
false
;
}
else
{
document
.
getElementById
(
'
message
'
).
style
.
color
=
'
red
'
;
document
.
getElementById
(
'
message
'
).
innerHTML
=
'
No son iguales
'
;
document
.
getElementById
(
"
btn_Registrarme
"
).
disabled
=
true
;
}
}
</script>
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
...
...
@@ -19,7 +35,7 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/footer.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/contenido-alta-usuario.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"iconos/style.css"
>
<title>
UyTube - Registrarse
</title>
</head>
<body>
...
...
@@ -64,8 +80,9 @@
</div>
<input
class=
"form-control"
name=
"fechaNa"
type=
"date"
id=
"input_fecha"
name=
"trip-start"
><br>
<input
class=
"form-control"
type=
"password"
placeholder=
"Contraseña"
id=
"input_Contraseña"
required
><br>
<input
class=
"form-control"
name=
"password"
type=
"password"
placeholder=
"Repetir contraseña"
id=
"input_Repetir_contraseña"
required
>
<input
class=
"form-control"
type=
"password"
name=
"password"
placeholder=
"Contraseña"
id=
"input_Contrasenia"
onkeyup=
"check()"
required
><br>
<input
class=
"form-control"
type=
"password"
placeholder=
"Repita contraseña"
id=
"input_Repetir_contraseña"
onkeyup=
"check()"
required
>
<span
id=
'message'
></span>
<div
class=
"d-block my-3"
>
<label
for=
"cc-name"
>
Privacidad del canal
</label>
...
...
@@ -88,7 +105,7 @@
<label
id=
"label_email"
>
Imagen de perfil
</label>
<div
class=
"form-group"
>
<input
accept=
".PNG,.JPG,.jpg,.png"
name=
"imagen"
id=
"input_Imagen_Perfil"
type=
"file"
class=
"file"
multiple=
false
data-preview-file-type=
"any"
><br>
<small
class=
"text-muted"
>
Opcional*
</small>
...
...
@@ -98,7 +115,7 @@
<div
class=
"btn-toolbar"
role=
"toolbar"
aria-label=
"Toolbar with button groups"
>
<div
class=
"btn-group mr-2"
role=
"group"
aria-label=
"First group"
>
<button
class=
"btn btn-lg btn-
primary
btn-block"
type=
"reset"
id=
"btn_Limpiar"
>
Limpiar
</button>
<button
class=
"btn btn-lg btn-
danger
btn-block"
type=
"reset"
id=
"btn_Limpiar"
>
Limpiar
</button>
</div>
<div
class=
"btn-group mr-2"
role=
"group"
aria-label=
"Second group"
>
<button
class=
"btn btn-lg btn-primary btn-block"
type=
"submit"
id=
"btn_Registrarme"
>
Registrarme
</button>
...
...
This diff is collapsed.
Click to expand it.
UyTube_web/web/IniciarSesion.jsp
+
0
−
2
View file @
01c75f7d
...
...
@@ -56,8 +56,6 @@
<input
type=
"text"
name=
"user"
id=
"txtUsuario"
class=
"form-control mb-4"
placeholder=
"nickname/email"
required
autofocus
>
<label
for=
"inputPassword"
name=
"password"
class=
"sr-only"
id=
"label_contrasenia"
>
Contraseña
</label>
<input
type=
"password"
name=
"password"
id=
"input_contraseña"
class=
"form-control mb-4"
placeholder=
"Contraseña"
required
>
<div
class=
"checkbox mb-3"
>
</div>
<button
class=
"btn btn-lg btn-primary btn-block mb-4"
type=
"submit"
id=
"btn_Ingresar"
>
Ingresar
</button>
<a
href=
"/uytube/usuario-agregar"
>
Registrase
</a>
...
...
This diff is collapsed.
Click to expand it.
UyTube_web/web/ModificarUsuario.jsp
+
20
−
5
View file @
01c75f7d
...
...
@@ -14,6 +14,22 @@
<%@page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%>
<!DOCTYPE html>
<html
lang=
"es"
>
<script>
var
check
=
function
()
{
if
(
document
.
getElementById
(
'
input_Contrasenia
'
).
value
==
document
.
getElementById
(
'
input_Repetir_contraseña
'
).
value
)
{
document
.
getElementById
(
'
message
'
).
style
.
color
=
'
green
'
;
document
.
getElementById
(
'
message
'
).
innerHTML
=
'
Correcto
'
;
document
.
getElementById
(
"
btn_Registrarme
"
).
disabled
=
false
;
}
else
{
document
.
getElementById
(
'
message
'
).
style
.
color
=
'
red
'
;
document
.
getElementById
(
'
message
'
).
innerHTML
=
'
No son iguales
'
;
document
.
getElementById
(
"
btn_Registrarme
"
).
disabled
=
true
;
}
}
</script>
<%
DtUsuario
usuario
=
(
DtUsuario
)
request
.
getAttribute
(
"usuario"
);
DtCanal
canal
=
(
DtCanal
)
request
.
getAttribute
(
"canal"
);
...
...
@@ -98,9 +114,11 @@
String
fecha
=
df
.
format
(
usuario
.
getFechaNacimiento
());
%>
<input
value=
"
<%=
fecha
%>
"
class=
"form-control"
name=
"fechaNa"
type=
"date"
id=
"input_fecha"
name=
"trip-start"
readonly=
"readonly"
><br>
<input
value=
"
<%=
usuario
.
getContrasenia
()
%>
"
class=
"form-control"
type=
"password"
placeholder=
"Contraseña"
id=
"input_Contraseña"
required
><br>
<input
value=
"
<%=
usuario
.
getContrasenia
()
%>
"
class=
"form-control"
name=
"password"
type=
"password"
placeholder=
"Repetir contraseña"
id=
"input_Repetir_contraseña"
required
>
<input
value=
"
<%=
usuario
.
getContrasenia
()
%>
"
class=
"form-control"
type=
"password"
name=
"password"
placeholder=
"Contraseña"
id=
"input_Contrasenia"
onkeyup=
"check()"
required
><br>
<input
value=
"
<%=
usuario
.
getContrasenia
()
%>
"
class=
"form-control"
type=
"password"
placeholder=
"Repita contraseña"
id=
"input_Repetir_contraseña"
onkeyup=
"check()"
required
>
<span
id=
'message'
></span>
<%
if
(
canal
.
getPrivacidad
()
==
Privacidad
.
PUBLICO
)
{
%>
...
...
@@ -153,9 +171,6 @@
<hr
class=
"mb-4"
>
<div
class=
"btn-toolbar"
role=
"toolbar"
aria-label=
"Toolbar with button groups"
>
<div
class=
"btn-group mr-2"
role=
"group"
aria-label=
"First group"
>
<button
class=
"btn btn-lg btn-primary btn-block"
type=
"reset"
id=
"btn_Limpiar"
>
Limpiar
</button>
</div>
<div
class=
"btn-group mr-2"
role=
"group"
aria-label=
"Second group"
>
<button
class=
"btn btn-lg btn-primary btn-block"
type=
"submit"
id=
"btn_Registrarme"
>
Modificar usuario
</button>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment