mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Change EncryptAllPasswords to BuildTask instead of DailyTask (from r96733)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102355 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
219c57b7bd
commit
1dec4a33f8
@ -12,7 +12,7 @@
|
||||
* @package sapphire
|
||||
* @subpackage tasks
|
||||
*/
|
||||
class EncryptAllPasswordsTask extends DailyTask {
|
||||
class EncryptAllPasswordsTask extends BuildTask {
|
||||
protected $title = 'Encrypt all passwords tasks';
|
||||
|
||||
protected $description = 'Convert all plaintext passwords on the Member table to the default encryption/hashing algorithm. Note: This mainly applies to passwords in SilverStripe 2.1 or earlier, passwords in newer versions are hashed by default.';
|
||||
@ -25,7 +25,7 @@ class EncryptAllPasswordsTask extends DailyTask {
|
||||
}
|
||||
}
|
||||
|
||||
public function run($request = null) {
|
||||
public function run($request) {
|
||||
$algo = Security::get_password_encryption_algorithm();
|
||||
if($algo == 'none') {
|
||||
$this->debugMessage('Password encryption disabled');
|
||||
|
Loading…
Reference in New Issue
Block a user