diff --git a/.idea/modules.xml b/.idea/modules.xml
index a4c960d..47971e9 100644
--- a/.idea/modules.xml
+++ b/.idea/modules.xml
@@ -2,7 +2,7 @@
-
+
diff --git a/LibraryLoop/docker-compose.yml b/LibraryLoop/docker-compose.yml
index f9707ce..541e767 100644
--- a/LibraryLoop/docker-compose.yml
+++ b/LibraryLoop/docker-compose.yml
@@ -1,5 +1,4 @@
services:
-
mysql:
image: mysql:8.0
container_name: libraryloop-mysql
@@ -26,9 +25,10 @@ services:
ports:
- "8080:8080"
environment:
- SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/libraryloop?useSSL=false&allowPublicKeyRetrieval=true
+ SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/libraryloop?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=America/Sao_Paulo
SPRING_DATASOURCE_USERNAME: libraryuser
SPRING_DATASOURCE_PASSWORD: librarypass
+ JWT_SECRET: iaowhfdoawfhoqui32gho1ubg24ou1ivb24oi
depends_on:
mysql:
condition: service_healthy
diff --git a/LibraryLoop/pom.xml b/LibraryLoop/pom.xml
index a573791..a9531f3 100644
--- a/LibraryLoop/pom.xml
+++ b/LibraryLoop/pom.xml
@@ -26,12 +26,25 @@
+
org.apache.httpcomponents.client5
httpclient5
-<<<<<<< HEAD
+
+
+ org.springframework.boot
+ spring-boot-starter-security
+
+
+
+
+ com.auth0
+ java-jwt
+ 4.4.0
+
+
org.springframework.boot
@@ -43,13 +56,6 @@
com.github.ben-manes.caffeine
caffeine
-=======
-
- org.springframework.boot
- spring-boot-starter-cache
-
->>>>>>> origin/main
-
@@ -63,7 +69,7 @@
spring-boot-starter-validation
-
+
org.projectlombok
lombok
@@ -71,13 +77,13 @@
true
-
+
org.springframework.boot
spring-boot-starter-data-jpa
- true
+
com.mysql
mysql-connector-j
@@ -91,6 +97,13 @@
test
+
+
+ org.springframework.security
+ spring-security-test
+ test
+
+
@@ -122,4 +135,4 @@
-
+
\ No newline at end of file
diff --git a/LibraryLoop/src/main/java/com/example/LibraryLoop/Repository/userRepository.java b/LibraryLoop/src/main/java/com/example/LibraryLoop/Repository/userRepository.java
index 41e8fc0..06e3c58 100644
--- a/LibraryLoop/src/main/java/com/example/LibraryLoop/Repository/userRepository.java
+++ b/LibraryLoop/src/main/java/com/example/LibraryLoop/Repository/userRepository.java
@@ -7,5 +7,7 @@
public interface userRepository extends JpaRepository {
- Optional findByUsername(String username);
+ Optional findByEmail(String email);
+ Optional