fix: final auth reset v1.1.0-RESET and force docker rebuild
This commit is contained in:
parent
42777abf6d
commit
bda5ab2c82
@ -1,4 +1,4 @@
|
||||
# BUILD_ID: 2024-03-27_T14_35_RESET
|
||||
# BUILD_ID: 2024-03-27_T14_40_FORCED_RESET
|
||||
FROM node:20-alpine AS base
|
||||
|
||||
# Install dependencies only when needed
|
||||
@ -41,9 +41,6 @@ ENV NEXT_TELEMETRY_DISABLED=1
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
RUN adduser --system --uid 1001 nextjs
|
||||
|
||||
# Copy public folder if exists (optional in this project)
|
||||
# COPY --from=builder /app/public ./public
|
||||
|
||||
# Set correct permissions for prerender cache
|
||||
RUN mkdir .next
|
||||
RUN chown nextjs:nodejs .next
|
||||
|
||||
@ -17,7 +17,7 @@ export async function login(prevState: any, formData: FormData) {
|
||||
const email = emailInput ? emailInput.trim().toLowerCase() : '';
|
||||
|
||||
// LOG DE VERSIÓN PARA CONFIRMAR DESPLIEGUE EN COOLIFY
|
||||
console.log('--- ALMEIRA WEB VERSION 1.1.0 ---');
|
||||
console.log('--- ALMEIRA WEB VERSION 1.1.0 (Reset) ---');
|
||||
console.log('Intento de login para:', email);
|
||||
|
||||
// 1. Bypass de Emergencia (Prioridad Máxima)
|
||||
@ -30,7 +30,7 @@ export async function login(prevState: any, formData: FormData) {
|
||||
path: "/",
|
||||
httpOnly: true,
|
||||
sameSite: "lax",
|
||||
secure: false, // Permitir en HTTP (No Seguro)
|
||||
secure: false, // Permitir en HTTP (No Seguro) para bypass
|
||||
maxAge: 60 * 60 * 24 * 7,
|
||||
});
|
||||
console.log('>>> MODO EMERGENCIA: Cookie guardada, redirigiendo a /dashboard');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user