Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1014 Bytes

disable-user-password.md

File metadata and controls

36 lines (24 loc) · 1014 Bytes

Disable user password

Provides a Deployment hook that sets configured users' password to NULL.

Usage

Run drush helfi:post-deploy to trigger this.

Configuration

See helfi_api_base.disable_password_users parameter in helfi_api_base.services.yml for default value.

Users are loaded by uid, mail and name field.

The value can be overridden in one of these files:

# public/sites/default/services.yml
# public/sites/default/{env}.services.yml
parameters:
  helfi_api_base.disable_password_users:
    - [email protected]
    - 1
    - 'some-user-name'

or dynamically in service provider class: https://www.drupal.org/docs/drupal-apis/services-and-dependency-injection/altering-existing-services-providing-dynamic-services.

Disable this feature

You can disable this feature by changing the disable_user_password setting to false:

# conf/cmi/helfi_api_base.features.yml
disable_user_password: false