mirror of https://github.com/MISP/MISP
Change to the login screen
- Places an optional logo to the left - MISP logo above the login fields, with an optional pre and post text - define them in the bootstrap as indicated in bootsrap.default.phppull/217/head
parent
58aaf4fa5f
commit
32c0b4e017
|
@ -134,6 +134,12 @@ Configure::write('SecureAuth.expire', 300); // the time-window for th
|
|||
|
||||
Configure::write('CyDefSIG.dns', 'false'); // there is a nameserver available to do resolution.
|
||||
|
||||
// The following 3 fields are not mandatory:
|
||||
|
||||
//Configure::write('MISP.welcome_text_top', 'Welcome to the Organisation community\'s'); // used in Events::login before the MISP logo
|
||||
//Configure::write('MISP.welcome_text_bottom', 'instance'); // used in Events::login after the MISP logo
|
||||
//Configure::write('MISP.welcome_logo', 'organisation'); // used in Events::login to the left of the MISP logo, place a .png file in app/webroot/img with the name specified here. In this case it would be organisation.png
|
||||
|
||||
/**
|
||||
* The settings below can be used to set additional paths to models, views and controllers.
|
||||
*
|
||||
|
|
|
@ -1,14 +1,51 @@
|
|||
<div class="container">
|
||||
<?php
|
||||
echo $this->Session->flash('auth');
|
||||
echo $this->Form->create('User', array('action' => 'login'));
|
||||
echo $this->Form->inputs(array(
|
||||
'legend' => __('Login', true),
|
||||
'email' => array('autocomplete' => 'off'),
|
||||
'password' => array('autocomplete' => 'off')
|
||||
));
|
||||
|
||||
echo $this->Form->button('Login', array('class' => 'btn btn-primary'));
|
||||
echo $this->Form->end();
|
||||
?>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<?php
|
||||
if (true == Configure::read('MISP.welcome_logo')) {
|
||||
?>
|
||||
<img src="
|
||||
<?php
|
||||
echo Configure::read('CyDefSig.url') . '/img/';
|
||||
echo Configure::read('MISP.welcome_logo');
|
||||
?>
|
||||
.png">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="span8">
|
||||
<span style="font-size:18px;">
|
||||
<?php
|
||||
if (true == Configure::read('MISP.welcome_text_top')) {
|
||||
echo Configure::read('MISP.welcome_text_top');
|
||||
}
|
||||
?>
|
||||
</span><br /><br />
|
||||
<ul class="nav" style="font-weight:bold; font-size:30px;text-align:center;">
|
||||
<span style="color: #0088cc;">M</span><span style="color: #000000;">alware</span>
|
||||
<span style="color: #0088cc;">I</span><span style="color: #000000;">nformation </span>
|
||||
<span style="color: #0088cc;">S</span><span style="color: #000000;">haring</span>
|
||||
<span style="color: #0088cc;">P</span><span style="color: #000000;">latform</span>
|
||||
</ul>
|
||||
<?php
|
||||
if (true == Configure::read('MISP.welcome_text_bottom')) {
|
||||
?>
|
||||
<ul style="text-align:right;font-size:18px;">
|
||||
<?php
|
||||
echo Configure::read('MISP.welcome_text_bottom');
|
||||
?>
|
||||
</ul>
|
||||
<?php
|
||||
}
|
||||
echo $this->Session->flash('auth');
|
||||
echo $this->Form->create('User', array('action' => 'login'));
|
||||
echo $this->Form->inputs(array(
|
||||
'legend' => __('Login', true),
|
||||
'email' => array('autocomplete' => 'off'),
|
||||
'password' => array('autocomplete' => 'off')
|
||||
));
|
||||
echo $this->Form->button('Login', array('class' => 'btn btn-primary'));
|
||||
echo $this->Form->end();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue