From c8df3f2d14b05f77587e6f90228dbc27b94f1181 Mon Sep 17 00:00:00 2001 From: Phung Huu Thanh <102614541+phuuthanh2003@users.noreply.github.com> Date: Mon, 26 Aug 2024 00:04:50 +0700 Subject: [PATCH] fix bugs --- db/Dockerfile | 4 ++-- .../backend/auction/controller/AuthenticationController.java | 1 - src/main/resources/application-dev.properties | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/db/Dockerfile b/db/Dockerfile index 8483673..0e62cf3 100644 --- a/db/Dockerfile +++ b/db/Dockerfile @@ -3,14 +3,14 @@ FROM mcr.microsoft.com/mssql/server:2019-latest # Biến môi trường ENV ACCEPT_EULA=Y -ENV SA_PASSWORD=Thanhth@nh1 +ENV SA_PASSWORD= # Copy the SQL script vào container COPY init.sql /usr/src/app/init.sql # Chạy lệnh trong file sql RUN /opt/mssql/bin/sqlservr & sleep 30 \ - && /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $SA_PASSWORD -i /usr/src/app/init.sql \ + && /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P ${{ secrets.SQL_SA_PASSWORD }} -i /usr/src/app/init.sql \ && pkill sqlservr EXPOSE 1433 diff --git a/src/main/java/vn/webapp/backend/auction/controller/AuthenticationController.java b/src/main/java/vn/webapp/backend/auction/controller/AuthenticationController.java index 8b6819f..e9ccf02 100644 --- a/src/main/java/vn/webapp/backend/auction/controller/AuthenticationController.java +++ b/src/main/java/vn/webapp/backend/auction/controller/AuthenticationController.java @@ -82,5 +82,4 @@ public ResponseEntity resetPassword( return ResponseEntity.ok(authenticationService.resetPassword(request)); } - } diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index d46c8b2..5cd2879 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -36,7 +36,7 @@ application.security.jwt.secret-key=jAkq3Mbc9Tz7X4D5Y6L8Q5C9wK8z2Gf9A6PqS5R8tV3v # Access token expiration time (15 minutes) #application.security.jwt.expiration=900000 -application.security.jwt.expiration=3600000 +application.security.jwt.expiration=7200000 # Refresh token expiration time (1 hour) #application.security.jwt.refresh-token.expiration=3600000