templates/login/frontend-login.html.twig line 1
{% extends 'base.html.twig' %}
{% block title %}Login{% endblock %}
{% block body %}
<div class="container d-flex align-items-center justify-content-center h-100">
<div class="d-flex flex-column bd-highlight mb-3 card shadow customer-login" style="background-color: #932444; border-radius: 0">
<div class="p-2 bd-highlight">
{% if error %}
<div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
</div>
<div class="p-2 bd-highlight text-center">
<img width="200" height="200" src="{{ asset('image/logo.png') }}">
</div>
<div class="p-2 bd-highlight">
<form action="{{ path('customer.login') }}" method="post">
<input class="form-control mt-1" type="text" placeholder="apikey" id="_username"
name="_username"/>
<input type="hidden" id="_password" value="" name="_password"/>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<button class="form-control btn btn-primary mt-2"
onclick="document.getElementById('_password').value = document.getElementById('_username').value"
type="submit">Login
</button>
</form>
</div>
</div>
</div>
{% endblock %}