New answers tagged

0

I'm facing the same problems so I create a Free API service that recognize disposable and temporary email address: Block Temporary Email Email Endpoint: GET https://block-temporary-email.com/check/email/example@simplemail.top JSON response: { "status": 200, "domain": "simplemail.top", "temporary": true, "dns": true, } This API is 100% free and ...


1

It sounds like the login_disable module will do exactly what you need. Prevent users from logging in to your Drupal site unless they know the secret key to add to the end of the login form page. ( default: http://example.com/?q=user/login&admin ) If your site has clean urls enabled you may use http://example.com/user/login?admin instead. That ...


0

You may grant your permissions on install time of your module with a simple config in config/install/user.role.publisher.yml (about this): langcode: en status: true dependencies: { } id: publisher label: Publisher weight: 3 is_admin: null permissions: - 'add contact entity' - 'edit contect entity' Your code above is not a "grant", it's a runtime-check ...


0

There's a default config for flood settings in core/modules/user/config/install/user.flood.yml: uid_only: false ip_limit: 50 ip_window: 3600 user_limit: 5 user_window: 21600 This means, that your user is locked for 21600 secs by default. Be patient :-) Unfortunately, there's no UI for that config currently. A workaround would be to import a single config ...


0

Once imported, on the /admin/people page you can select all users and deactive the accounts. If you activate them again, they get the e-mail.


0

my_module.module : <?php use Drupal\my_module\MyModuleListBuilder; function my_module_entity_type_alter(array &$entity_types) { $entity_types['user']->setHandlerClass('list_builder', MyModuleListBuilder::class); // $entity_types['user']->setListBuilderClass(MyModuleListBuilder::class); // Other solution possible } my_module\src\...


0

Go to web/sites/default/services.yml and change the debug value from false to true debug: true You will get file name suggestions like shown in the image, u should use the same names. Also, was your sub-theme succesfully installed? Is the sub-theme under this path ? ` themes/custom/myproject_bootstrap_subtheme `


0

Answering with the workaround I used. It is far from ideal, but works. It relies on having access to the DB of the client site. This uses D7 rules with the php-filter module. It would be much more elegant in it's own custom module. The site sending the POST request uses sql to update the authname table on the site receiving the POST request. The created ...


0

You can implement hook_user_cancel_methods_alter() to add your own cancellation methods. Add the cancellation methods using this hook, then implement hook_user_cancel(). In the hook_user_cancel implementation, you will be able to use a switch/case on the method selected and create your custom cancellation logic: Load the entities Change the uid for each ...


0

update.php does not update modules. It updates the database state if needed (after installing module updates, aka db-update). Did you check the permissions of your /modules/contrib/* filesystem? When you update your modules with the admin UI, your webserver's user (apache or www-run...) needs to have write permission there. Did you install your instance ...


Top 50 recent answers are included