From 3b579ba33b34c12418bd8d6aa6899297fa9a9904 Mon Sep 17 00:00:00 2001 From: Giuli1297 Date: Tue, 9 Nov 2021 13:37:20 -0300 Subject: [PATCH] Merge --- curriculumsearch/src/main/java/com/roshka/configuration/WebSecurityConfig.java | 3 +++ curriculumsearch/src/main/java/com/roshka/controller/RRHHUserController.java | 6 ++++-- curriculumsearch/src/main/webapp/jsp/alerts.jsp | 18 ++++++++++++++++++ curriculumsearch/src/main/webapp/jsp/index.jsp | 19 ++++++------------- curriculumsearch/src/main/webapp/jsp/login.jsp | 7 ++++--- curriculumsearch/src/main/webapp/jsp/registration.jsp | 2 +- 6 files changed, 36 insertions(+), 19 deletions(-) create mode 100644 curriculumsearch/src/main/webapp/jsp/alerts.jsp diff --git a/curriculumsearch/src/main/java/com/roshka/configuration/WebSecurityConfig.java b/curriculumsearch/src/main/java/com/roshka/configuration/WebSecurityConfig.java index 08d65bc..d1279b2 100644 --- a/curriculumsearch/src/main/java/com/roshka/configuration/WebSecurityConfig.java +++ b/curriculumsearch/src/main/java/com/roshka/configuration/WebSecurityConfig.java @@ -51,6 +51,9 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { .authorizeRequests() .antMatchers("/").authenticated() .antMatchers("/home").authenticated() + .antMatchers("/cargo*").authenticated() + .antMatchers("/convocatoria*").authenticated() + .antMatchers("/tecnologia*").authenticated() .antMatchers("/postulantes").authenticated() .anyRequest().permitAll() .and() diff --git a/curriculumsearch/src/main/java/com/roshka/controller/RRHHUserController.java b/curriculumsearch/src/main/java/com/roshka/controller/RRHHUserController.java index ef5b0de..262fbfd 100644 --- a/curriculumsearch/src/main/java/com/roshka/controller/RRHHUserController.java +++ b/curriculumsearch/src/main/java/com/roshka/controller/RRHHUserController.java @@ -3,7 +3,6 @@ package com.roshka.controller; import com.roshka.modelo.RRHHUser; import com.roshka.repositorio.RRHHUserRepository; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; @@ -35,7 +34,10 @@ public class RRHHUserController { } @GetMapping("/login") - public String getLogin() { + public String getLogin(Model model, HttpServletRequest request) { + if(request.getParameter("error")!=null){ + model.addAttribute("error", "Credenciales Incorrectas"); + } return "login"; } diff --git a/curriculumsearch/src/main/webapp/jsp/alerts.jsp b/curriculumsearch/src/main/webapp/jsp/alerts.jsp new file mode 100644 index 0000000..173ec86 --- /dev/null +++ b/curriculumsearch/src/main/webapp/jsp/alerts.jsp @@ -0,0 +1,18 @@ +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + +
+ + + + + + +
\ No newline at end of file diff --git a/curriculumsearch/src/main/webapp/jsp/index.jsp b/curriculumsearch/src/main/webapp/jsp/index.jsp index 67945a0..2ee7cdc 100644 --- a/curriculumsearch/src/main/webapp/jsp/index.jsp +++ b/curriculumsearch/src/main/webapp/jsp/index.jsp @@ -15,20 +15,13 @@
+ Form postulante -
-
-

- Welcome -

- -
-
+ Lista de postulantes + Tecnologias + Lista de convocatorias + Lista de cargos
- Form postulante - Lista de postulantes - Tecnologias - Lista de convocatorias - Lista de cargos + \ No newline at end of file diff --git a/curriculumsearch/src/main/webapp/jsp/login.jsp b/curriculumsearch/src/main/webapp/jsp/login.jsp index cda5c85..11e5c13 100644 --- a/curriculumsearch/src/main/webapp/jsp/login.jsp +++ b/curriculumsearch/src/main/webapp/jsp/login.jsp @@ -6,11 +6,12 @@ Login - + + +
@@ -44,7 +45,7 @@
- + diff --git a/curriculumsearch/src/main/webapp/jsp/registration.jsp b/curriculumsearch/src/main/webapp/jsp/registration.jsp index 74b4217..fc9a74f 100644 --- a/curriculumsearch/src/main/webapp/jsp/registration.jsp +++ b/curriculumsearch/src/main/webapp/jsp/registration.jsp @@ -30,7 +30,7 @@
Email - +
-- libgit2 0.26.0