-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPasswordStrength.php
More file actions
30 lines (30 loc) · 825 Bytes
/
PasswordStrength.php
File metadata and controls
30 lines (30 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/** PasswordStrength Plugin declaration
*/
class PasswordStrengthPlugin extends MantisPlugin
{
function register()
{
$this->name = 'PasswordStrength';
$this->description = 'A plugin to force users to use a strong password';
$this->page = '';
$this->version = '0.0.1';
$this->requires = array(
"MantisCore" => "2.0.0",
);
$this->author = 'Guillaume Martin';
$this->contact = 'guillaumemartin.dev@gmail.com';
$this->url = 'https://github.com/ryltar/PasswordStrength';
}
function hooks()
{
return array(
"EVENT_LAYOUT_RESOURCES" => 'scripts',
);
}
function scripts()
{
echo '<script type="text/javascript" src="' . plugin_file( 'PasswordStrength.js' ) . '"></script>';
}
}
?>