Hej,
mam pytanie. Dlaczego po przerzuceniu na serwer dhosting plików z aplikacji nie działa mi logowanie? Na localhost
działa jednak już odpalając stronę nie chce. Strona się tylko odświeża, akcja w ogóle nie trafia do kontrolera.
{# templates/login/login.html.twig #}
{% extends 'base.html.twig' %}
{# ... #}
{% block body %}
<div class="m-auto text-center">
<div class="py-12 border-gray-200">
<h1 class="text-6xl pt-12 pb-8">
Login
</h1>
{% if error %}
<div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<form action="{{ path('app_login') }}" method="post">
<div class="mb-6">
<label class="block text-gray-800 required" for="username">Email</label>
<input class="border rounded-md" type="text" id="username" name="_username" value="{{ last_username }}">
</div>
<div class="mb-6">
<label class="block text-gray-800 required" for="password">Password:</label>
<input class="border rounded-md" type="password" id="password" name="_password">
</div>
{# If you want to control the URL the user is redirected to on success
<input type="hidden" name="_target_path" value="/account"> #}
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<button type="submit" class="uppercase mt-15 bg-blue-500 text-gray-100 text-lg w-1/6 font-extrabold py-4 px-4 rounded-3xl">
Login
</button>
</form>
</div>
</div>
{% endblock %}
nie mam pomysłu co to może być.
Korzystam z symfony6 (w zasadzie to dopiero początki moje), APP_ENV
też mam ustawione na prod.
Może ktoś się spotkał już z takim problemem?
dodam że logowanie tworzyłem za pomocą make:controller User