Commit 1a0b8a0
authored
Set auto password hasher for all user classes (see #6289)
Description
-----------
In Symfony 5.3 this config was added to the default security config in order to enable the `auto` password hasher for all user classes that implement this interface (see symfony/recipes#981) - which `Contao\User` also implements.
I think we should do the same in the `contao/managed-edition`. This way you don't have to define this yourself in case you are using HTTP Basic Authentication for some controller outside Contao's own firewalls. For instance, in [this example](contao/contao#6220 (comment)) the line
```php
$extensionConfig['password_hashers'][InMemoryUser::class] = 'auto';
```
could be omitted then.
Commits
-------
84c6d47a set auto password hasher to auto for all
ab0a6719 also set password hasher for Contao\User specifically
593d2448 update README and test config1 parent 1b49390 commit 1a0b8a0
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments