Browse Source

fix 2fa authentication

master
Simon Vieille 2 weeks ago
parent
commit
28d24619a9
  1. 2
      config/packages/scheb_2fa.yaml
  2. 9
      core/Resources/views/auth/2fa.html.twig

2
config/packages/scheb_2fa.yaml

@ -6,7 +6,7 @@ scheb_two_factor:
server_name:
digits: 6
window: 1
template: auth/2fa.html.twig
template: "@Core/auth/2fa.html.twig"
security_tokens:
- Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken
# If you're using guard-based authentication, you have to use this one:

9
core/Resources/views/auth/2fa.html.twig

@ -4,7 +4,7 @@
<head>
{{ include('@Core/admin/module/metas.html.twig') }}
<title>{% block title %}{{ 'Authentication'|trans }} - {{ site_name }}{% endblock %}</title>
<title>{% block title %}{{ 'Authentication'|trans }}{% endblock %}</title>
{% block css %}
{{ encore_entry_link_tags('admin') }}
@ -13,7 +13,7 @@
<body>
<div class="container login-container">
<div class="row shadow rounded">
<div class="col-md-6">
<div class="col-md-12">
<div class="login-form">
<div class="h3 pb-4">
<span class="text-success">
@ -63,11 +63,6 @@
</form>
</div>
</div>
<div class="col-md-6 bg-light d-flex">
<div class="flex-fill align-self-center text-center p-3">
<img class="login-image" src="{{ asset(site_logo) }}" alt="{{ site_name }}" title="{{ site_name }}">
</div>
</div>
</div>
</div>

Loading…
Cancel
Save