GithubHelp home page GithubHelp logo

Comments (5)

stevector avatar stevector commented on May 26, 2024

Hi @ptmkenny, what is the behavior you are expecting? This code is meant to remove the stored password hashes from the database and replace them with nearly unusable hashes. the purpose of this script is to prevent distribution of real users' password hashes.

It is conceivable that you could reverse engineer a usable password to enter for a user after this script ran, but that is not the intention. If you want to log in to a site after running this script you should run drush user-login.

from quicksilver-examples.

ptmkenny avatar ptmkenny commented on May 26, 2024

@stevector Hmm, ok. I was expecting it to have similar behavior to drush sql-sanitize, which by default sets all user passwords to "password".

from quicksilver-examples.

stevector avatar stevector commented on May 26, 2024

@ptmkenny you could use drush sql-sanitize as well. Here is an example of calling a drush command via Quicksilver: https://github.com/pantheon-systems/quicksilver-examples/blob/master/drush_revert_features/revert_all_features.php

This example was written before Quicksilver had the capacity to run Drush commands. Perhaps we should update this example to use Drush.

from quicksilver-examples.

ptmkenny avatar ptmkenny commented on May 26, 2024

@stevector Have you successfully used drush sql-sanitize on Pantheon? It blows up for me when I try it:

$ drush @MYSITE.dev sql-sanitize --sanitize-email=no
PTY allocation request failed on channel 0

Fatal error: Class 'Drupal' not found in /opt/pantheon/drush-8/commands/sql/sql.drush.inc on line 658
Ok
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Class 'Drupal' not found in
/opt/pantheon/drush-8/commands/sql/sql.drush.inc, line 658

from quicksilver-examples.

stevector avatar stevector commented on May 26, 2024

I am getting the same error. @greg-1-anderson, do you have thoughts on this question?

from quicksilver-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.