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
07d4461c
Commit
07d4461c
authored
5 years ago
by
JotaJota96
Browse files
Options
Downloads
Patches
Plain Diff
Mejora en Iniciar sesion: ahora se muestra mensaje al errar los datos
parent
0c779852
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
UyTube_web/src/java/com/uytube/IniciarSesion.java
+1
-0
1 addition, 0 deletions
UyTube_web/src/java/com/uytube/IniciarSesion.java
UyTube_web/web/IniciarSesion.jsp
+10
-6
10 additions, 6 deletions
UyTube_web/web/IniciarSesion.jsp
with
11 additions
and
6 deletions
UyTube_web/src/java/com/uytube/IniciarSesion.java
+
1
−
0
View file @
07d4461c
...
...
@@ -108,6 +108,7 @@ public class IniciarSesion extends HttpServlet {
rd
=
request
.
getRequestDispatcher
(
"/"
);
}
else
{
//lógica para login inválido
request
.
setAttribute
(
"mostrarMsjError"
,
true
);
rd
=
request
.
getRequestDispatcher
(
"/IniciarSesion.jsp"
);
}
rd
.
forward
(
request
,
response
);
...
...
This diff is collapsed.
Click to expand it.
UyTube_web/web/IniciarSesion.jsp
+
10
−
6
View file @
07d4461c
...
...
@@ -56,12 +56,16 @@
<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"
>
<label>
<input
type=
"checkbox"
value=
"remember-me"
id=
"check_recuerdarme"
>
Recuerdarme
<p
id=
"mitexto"
></p>
</label>
</div>
<%
boolean
mostrarMsjError
=
(
request
.
getAttribute
(
"mostrarMsjError"
)
!=
null
);
if
(
mostrarMsjError
){
%>
<div
class=
"mb-3"
>
<span
id=
"msjError"
style=
"color: red"
>
El usuario o la contraseña son incorrectos
</span>
</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.
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