Skip to content

Commit

Permalink
Fix minor password reset tool issues. (#1611)
Browse files Browse the repository at this point in the history
* Fixed password reset tool Symfony task description text
* Made task use the standard AtoM base class for tasks
  • Loading branch information
mcantelon committed Jun 17, 2023
1 parent c741f38 commit 7f9cecf
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/task/tools/resetPasswordTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with Access to Memory (AtoM). If not, see <http://www.gnu.org/licenses/>.
*/

class resetPasswordTask extends sfBaseTask
class resetPasswordTask extends arBaseTask
{
public function generatePassword($length = 8)
{
Expand Down Expand Up @@ -77,15 +77,13 @@ protected function configure()
$this->name = 'reset-password';
$this->briefDescription = 'Generates or set a new password for a given username or e-mail address';
$this->detailedDescription = <<<'EOF'
FIXME
Generates or set a new password for a given username or e-mail address
EOF;
}

protected function execute($arguments = [], $options = [])
{
$databaseManager = new sfDatabaseManager($this->configuration);
$conn = $databaseManager->getDatabase('propel')->getConnection();
sfContext::createInstance($this->configuration);
parent::execute($arguments, $options);

$criteria = new Criteria();
$c1 = $criteria->getNewCriterion(QubitUser::USERNAME, $arguments['username']);
Expand Down

0 comments on commit 7f9cecf

Please sign in to comment.