mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-05 23:20:18 +02:00
Compare commits
12 Commits
0.0.18
...
c033965652
| Author | SHA1 | Date | |
|---|---|---|---|
| c033965652 | |||
| 01a034d83e | |||
| 122f84fe3c | |||
| e1b607ed2d | |||
| 622a0e1571 | |||
| 03425024fe | |||
| 182353e2eb | |||
| 9badb1d875 | |||
| df37faa5a3 | |||
| 7ec052b0a1 | |||
| f90fb00547 | |||
| aa39db3f5e |
+16
-1
@@ -7,9 +7,24 @@ version: 2
|
|||||||
updates:
|
updates:
|
||||||
- package-ecosystem: "composer" # See documentation for possible values
|
- package-ecosystem: "composer" # See documentation for possible values
|
||||||
directory: "/" # Location of package manifests
|
directory: "/" # Location of package manifests
|
||||||
|
allow:
|
||||||
|
# Allow both direct and indirect updates for all packages
|
||||||
|
- dependency-type: "all"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "symfony/*"
|
||||||
|
update-types: [ "version-update:semver-major", "version-update:semver-minor" ]
|
||||||
|
groups:
|
||||||
|
dev-dependencies:
|
||||||
|
dependency-type: "development"
|
||||||
|
symfony:
|
||||||
|
patterns:
|
||||||
|
- "symfony/*"
|
||||||
|
twig:
|
||||||
|
patterns:
|
||||||
|
- "twig/*"
|
||||||
- package-ecosystem: "docker"
|
- package-ecosystem: "docker"
|
||||||
directtory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
name: Dependabot auto-merge
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dependabot:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.pull_request.user.login == 'dependabot[bot]'
|
||||||
|
steps:
|
||||||
|
- name: Dependabot metadata
|
||||||
|
id: metadata
|
||||||
|
uses: dependabot/fetch-metadata@v2
|
||||||
|
with:
|
||||||
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
- name: Enable auto-merge for Dependabot PRs
|
||||||
|
if: contains(steps.metadata.outputs.dependency-type, 'development')
|
||||||
|
run: |
|
||||||
|
gh pr review --approve "$PR_URL"
|
||||||
|
gh pr merge --auto --squash "$PR_URL"
|
||||||
|
env:
|
||||||
|
PR_URL: ${{github.event.pull_request.html_url}}
|
||||||
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
+1
-1
@@ -40,7 +40,7 @@
|
|||||||
"symfony/ux-turbo": "^2.35.0",
|
"symfony/ux-turbo": "^2.35.0",
|
||||||
"symfony/validator": "8.0.*",
|
"symfony/validator": "8.0.*",
|
||||||
"symfony/yaml": "8.0.*",
|
"symfony/yaml": "8.0.*",
|
||||||
"symfonycasts/sass-bundle": "^0.9",
|
"symfonycasts/sass-bundle": "^0.10",
|
||||||
"symfonycasts/verify-email-bundle": "^1.18.0",
|
"symfonycasts/verify-email-bundle": "^1.18.0",
|
||||||
"thecodingmachine/safe": "^3.4.0",
|
"thecodingmachine/safe": "^3.4.0",
|
||||||
"twig/extra-bundle": "^3.24.0",
|
"twig/extra-bundle": "^3.24.0",
|
||||||
|
|||||||
Generated
+275
-189
File diff suppressed because it is too large
Load Diff
@@ -24,7 +24,10 @@ security:
|
|||||||
default_target_path: tvdt_backoffice_index
|
default_target_path: tvdt_backoffice_index
|
||||||
logout:
|
logout:
|
||||||
path: tvdt_login_logout
|
path: tvdt_login_logout
|
||||||
|
remember_me:
|
||||||
|
secret: '%kernel.secret%'
|
||||||
|
lifetime: 604800 # 1 week in seconds
|
||||||
|
|
||||||
access_control:
|
access_control:
|
||||||
- { path: ^/admin, roles: ROLE_ADMIN }
|
- { path: ^/admin, roles: ROLE_ADMIN }
|
||||||
- { path: ^/backoffice, roles: ROLE_USER }
|
- { path: ^/backoffice, roles: ROLE_USER }
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ use Symfony\Component\HttpFoundation\Response;
|
|||||||
use Symfony\Component\HttpKernel\Attribute\AsController;
|
use Symfony\Component\HttpKernel\Attribute\AsController;
|
||||||
use Symfony\Component\Routing\Attribute\Route;
|
use Symfony\Component\Routing\Attribute\Route;
|
||||||
use Symfony\Component\Security\Core\Exception\AuthenticationException;
|
use Symfony\Component\Security\Core\Exception\AuthenticationException;
|
||||||
use Symfony\Component\Security\Core\User\UserInterface;
|
|
||||||
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
|
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
|
||||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||||
use Tvdt\Enum\FlashType;
|
use Tvdt\Enum\FlashType;
|
||||||
|
|||||||
@@ -3,39 +3,33 @@
|
|||||||
{% block title %}Log in{% endblock %}
|
{% block title %}Log in{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{% if app.user %}
|
<form method="post">
|
||||||
|
<h1 class="py-2 h3 mb-3 font-weight-normal">{{ 'Please sign in'|trans }}</h1>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
You are logged in as {{ app.user.userIdentifier }}, <a href="{{ path('tvdt_login_logout') }}">Logout</a>
|
<label for="username" class="form-label">{{ 'Email'|trans }}</label>
|
||||||
|
<input type="email" value="{{ last_username }}" name="_username" id="username" class="form-control"
|
||||||
|
autocomplete="email" required autofocus>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
|
||||||
<form method="post">
|
|
||||||
<h1 class="py-2 h3 mb-3 font-weight-normal">{{ 'Please sign in'|trans }}</h1>
|
|
||||||
<div class="mb-3">
|
|
||||||
<label for="username" class="form-label">{{ 'Email'|trans }}</label>
|
|
||||||
<input type="email" value="{{ last_username }}" name="_username" id="username" class="form-control"
|
|
||||||
autocomplete="email" required autofocus>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="password" class="form-label">{{ 'Password'|trans }}</label>
|
<label for="password" class="form-label">{{ 'Password'|trans }}</label>
|
||||||
<input type="password" name="_password" id="password" class="form-control"
|
<input type="password" name="_password" id="password" class="form-control"
|
||||||
autocomplete="current-password"
|
autocomplete="current-password"
|
||||||
required>
|
required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input type="hidden" name="_csrf_token" data-controller="csrf-protection"
|
<input type="hidden" name="_csrf_token" data-controller="csrf-protection"
|
||||||
value="{{ csrf_token('authenticate') }}">
|
value="{{ csrf_token('authenticate') }}">
|
||||||
|
|
||||||
<div class="mb-3 form-check">
|
<div class="mb-3 form-check">
|
||||||
<input type="checkbox" name="_remember_me" id="_remember_me" class="form-check-input">
|
<input type="checkbox" name="_remember_me" id="_remember_me" class="form-check-input" checked>
|
||||||
<label for="_remember_me" class="form-check-label">{{ 'Remember me'|trans }}</label>
|
<label for="_remember_me" class="form-check-label">{{ 'Remember me'|trans }}</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button class="btn btn-lg btn-primary" type="submit">
|
<button class="btn btn-lg btn-primary" type="submit">
|
||||||
{{ 'Sign in'|trans }}
|
{{ 'Sign in'|trans }}
|
||||||
</button>
|
</button>
|
||||||
<a href="{{ path('tvdt_register') }}"
|
<a href="{{ path('tvdt_register') }}"
|
||||||
class="btn btn-link">{{ 'Create an account'|trans }}</a>
|
class="btn btn-link">{{ 'Create an account'|trans }}</a>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user