mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-19 06:51:33 +02:00
[feature/passwords] Define default hashing algorithm in container file
The default hashing algorithm type is defined as a parameter in the service definition file for the password hashing system. This will allow us to change this in the future but it will also prevent unexperienced admins from changing the hashing algorithm. PHPBB3-11610
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
parameters:
|
||||
password_hashing.algorithm: crypto.driver.bcrypt_2y
|
||||
|
||||
services:
|
||||
crypto.driver.bcrypt:
|
||||
class: phpbb_crypto_driver_bcrypt
|
||||
@@ -41,3 +44,11 @@ services:
|
||||
- @service_container
|
||||
tags:
|
||||
- { name: service_collection, tag: crypto.driver }
|
||||
|
||||
crypto.manager:
|
||||
class: phpbb_crypto_manager
|
||||
arguments:
|
||||
- @config
|
||||
- @service_container
|
||||
- @crypto.driver_collection
|
||||
- %password_hashing.algorithm%
|
||||
|
@@ -122,13 +122,6 @@ services:
|
||||
- @config
|
||||
- @dbal.conn
|
||||
|
||||
crypto.manager:
|
||||
class: phpbb_crypto_manager
|
||||
arguments:
|
||||
- @config
|
||||
- @service_container
|
||||
- @crypto.driver_collection
|
||||
|
||||
dispatcher:
|
||||
class: phpbb_event_dispatcher
|
||||
arguments:
|
||||
|
Reference in New Issue
Block a user