Thanks for the helpful hints ! I found a simple script provided by OSTraining meant for Drupal 7 and I try changing some api names to backdrop and it works for me. Let me know if there's any issue with this way of working or better codes to be done. Thanks !
Replace "mypassword" with whatever you want to use as the password. The script accesses the backdrop password function and changes the password for you.
Step 4: Uninstall the PHP script and login
One you're done resetting passwords. Be sure to uninstall the php script you created by deleting it using FTP or your file manager.
Notes: This is successfully tested on backdrop v1.8.0
I am seeing via dpm debug that the nodes that are authored by someone else are not even being interrogated at the view level; they are simply avoiding the hook_node_access call.
Yet the...
One suggestion would be to "fail early". It looks like if the user does not have the organisation field set, none of the other code matters.
if ($role == "organisation") {
$u = user_load($...
Great, willowf! Glad to help.
Yes, posting on the issue queues is the way to go. What you saw here doesn't always happen :) stpaultim and I caught an interest in this module since it was...
Posted11 hours 46 min ago by Alejandro Cremaschi (argiepiano) on:
Hi onyx. No time to debug for you, but have you try step-debugging, or inserting dpm() before each return to check if the logic is working in your code? Also, keep in mind that other...
Posted11 hours 50 min ago by Alejandro Cremaschi (argiepiano) on:
You've included everything relevant. Thank you. You don't need to be a developer to help; writing clear reproduceable bug reports helps people identify the cause and remedy of problems
Posted14 hours 19 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
Comments
One way to do this is with
drush:
To use
drush
with Backdrop install the Backdrop Drush Extension or use a tool like Lando that includes drush with it.There are also some scripts in the core/scripts directory that can help with resetting passwords.
Thanks for the helpful hints ! I found a simple script provided by OSTraining meant for Drupal 7 and I try changing some api names to backdrop and it works for me. Let me know if there's any issue with this way of working or better codes to be done. Thanks !
https://www.ostraining.com/blog/drupal/password-recovery-for-drupal-7
Here the steps:
Step 1: Create a short PHP script with code below
Step 2: Upload the PHP script to the main/root backdrop directory
Step 3: Use the PHP script from your browser address bar
Step 4: Uninstall the PHP script and login
Notes: This is successfully tested on backdrop v1.8.0