freeipa/install/ui/reset_password.html
Stanislav Levin 3a43bf886b Use "login" plugin instead of standalone JS file
Plugin "login" already has the same functionality as a JS code in
separated javascript file. There is no need to duplicate it.

Fixes: https://pagure.io/freeipa/issue/7619
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
Reviewed-By: Serhii Tsymbaliuk <stsymbal@redhat.com>
2018-09-12 12:41:19 +02:00

71 lines
2.0 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>IPA: Identity Policy Audit</title>
<!--[if IE]>
<meta id="ie-detector">
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="js/libs/loader.js"></script>
<script type="text/javascript">
var dojoConfig = {
baseUrl: "js",
has: {
'dojo-firebug': false,
'dojo-debug-messages': true
},
parseOnLoad: false,
async: true,
packages: [
{
name:'dojo',
location:'dojo'
},
{
name: 'freeipa',
location: 'freeipa'
}
],
cacheBust: ipa_loader.num_version || ""
};
(function() {
var ie = !!document.getElementById('ie-detector');
var styles = [
'css/patternfly.css',
'css/ipa.css',
'ipa.css'
];
if (ie) styles.push('ie.css');
var icons = ['favicon.ico'];
var scripts = [
'js/libs/json2.js',
'js/libs/jquery.js',
'js/libs/bootstrap.js',
'js/libs/jquery.ordered-map.js',
'js/libs/browser.js',
'js/dojo/dojo.js'
];
ipa_loader.scripts(scripts, function() {
require(['freeipa/core', 'dojo/domReady!'], function(app) {
var reset_pass = require('freeipa/plugins/login');
reset_pass.facet_spec.widgets[1].view = "reset";
app.run_simple('login');
});
});
ipa_loader.styles(styles);
ipa_loader.icons(icons);
})();
</script>
</head>
<body>
<noscript>This application requires JavaScript enabled.</noscript>
</body>
</html>