mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
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>
This commit is contained in:
parent
4da736e7bc
commit
3a43bf886b
@ -1,122 +1,70 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="login-pf">
|
||||
<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 = [
|
||||
'../ui/css/patternfly.css',
|
||||
'../ui/css/ipa.css',
|
||||
'../ui/ipa.css'
|
||||
'css/patternfly.css',
|
||||
'css/ipa.css',
|
||||
'ipa.css'
|
||||
];
|
||||
ipa_loader.styles(styles);
|
||||
ipa_loader.scripts([
|
||||
if (ie) styles.push('ie.css');
|
||||
var icons = ['favicon.ico'];
|
||||
var scripts = [
|
||||
'js/libs/json2.js',
|
||||
'js/libs/jquery.js',
|
||||
'reset_password.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>
|
||||
|
||||
<div class="login-pf-body">
|
||||
<span id="badge">
|
||||
<img src="images/login-screen-logo.png" alt="" />
|
||||
</span>
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-12">
|
||||
<div id="brand">
|
||||
<img src="images/product-name.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-7 col-md-6 col-lg-5 login">
|
||||
<form class="form-horizontal" role="form" action="/ipa/session/change_password" method="post" id="reset_password">
|
||||
<div class="form-group validation-summary-group">
|
||||
<div class="col-sm-12 controls">
|
||||
<div class="widget validation-summary">
|
||||
<div class="alert alert-success" style="display:none;">
|
||||
<span class="fa fa-check-circle-o"></span><p></p>
|
||||
</div>
|
||||
<div class="alert alert-danger" style="display:none;">
|
||||
<span class="fa fa-exclamation-circle"></span><p></p>
|
||||
</div>
|
||||
<div class="alert alert-warning" style="display:none;">
|
||||
<span class="fa fa-warning"></span><p></p>
|
||||
</div>
|
||||
<div class="alert alert-info" style="display:none;">
|
||||
<span class="fa fa-info-circle"></span><p></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-4 control-label">
|
||||
<label for="user">Username</label>
|
||||
</div>
|
||||
<div class="col-sm-8 controls">
|
||||
<div class="widget text-widget">
|
||||
<input type="text" class="form-control" name="user" id="user" title="Username" accesskey="u">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-4 control-label">
|
||||
<label for="old_password">Current Password</label>
|
||||
</div>
|
||||
<div class="col-sm-8 controls">
|
||||
<div class="widget text-widget">
|
||||
<input type="password" class="form-control" name="old_password" id="old_password" accesskey="p">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-4 control-label">
|
||||
<label for="otp">OTP</label>
|
||||
</div>
|
||||
<div class="col-sm-8 controls">
|
||||
<div class="widget text-widget">
|
||||
<input type="password" class="form-control" name="otp" id="otp" accesskey="o">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-4 control-label">
|
||||
<label for="new_password">New Password</label>
|
||||
</div>
|
||||
<div class="col-sm-8 controls">
|
||||
<div class="widget text-widget">
|
||||
<input type="password" class="form-control" name="new_password" id="new_password" accesskey="n">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-4 control-label">
|
||||
<label for="verify_password">Verify Password</label>
|
||||
</div>
|
||||
<div class="col-sm-8 controls">
|
||||
<div class="widget text-widget">
|
||||
<input type="password" class="form-control" id="verify_password" accesskey="v">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-4 col-sm-offset-4 col-sm-8 submit">
|
||||
<input name="submit" class="btn btn-primary btn-lg" value="Reset" type="submit" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-sm-5 col-md-6 col-lg-7 details">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<noscript>This application requires JavaScript enabled.</noscript>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user