Commit 1726c5b0 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Removed unused method

Showing with 0 additions and 32 deletions
+0 -32
...@@ -382,37 +382,5 @@ class passwordMethod ...@@ -382,37 +382,5 @@ class passwordMethod
return TRUE; return TRUE;
} }
/*!
* \brief Get the password proposal
*/
static function getPasswordProposal()
{
global $config;
if ($config->get_cfg_value('passwordProposalHook', '') != '') {
$command = $config->get_cfg_value('passwordProposalHook', '');
if (check_command($command)) {
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, "Execute");
exec($command, $arr, $returnCode);
if ($returnCode != 0) {
$str = implode("\n", $arr);
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, "Execution failed code: ".$returnCode);
$message = msgPool::cmdexecfailed($cmd, $command, get_class($plugin));
msg_dialog::display(_("Error"), $message, ERROR_DIALOG);
} elseif (is_array($arr)) {
$str = implode("\n", $arr);
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, "Result: ".$str);
if (count($arr) && !empty($arr[0])) {
return $arr[0];
}
}
} else {
$message = msgPool::cmdinvalid($cmd, $command, get_class($plugin));
msg_dialog::display(_("Error"), $message, ERROR_DIALOG);
}
}
return '';
}
} }
?> ?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment