mirror of https://github.com/MISP/MISP
minor correction:
- login page does not display "invalid user" when first time presented to the user - "Log Off" button removed from the print viewpull/61/head
parent
ed298aa0dd
commit
17950b965e
|
@ -219,7 +219,9 @@ class UsersController extends AppController {
|
|||
if ($this->Auth->login()) {
|
||||
$this->redirect($this->Auth->redirect());
|
||||
} else {
|
||||
$this->Session->setFlash(__('Invalid username or password, try again'));
|
||||
// don't display "invalid user" before first login attempt
|
||||
if($this->request->is('post')) $this->Session->setFlash(__('Invalid username or password, try again'));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -55,8 +55,8 @@
|
|||
<?php echo $this->fetch('content'); ?>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<h1 style="float:left;">Download: <?php echo $this->Html->link('PGP/GPG key', '/gpg.asc');?></h1>
|
||||
<h1 style="float:right;"> <?php echo $this->Html->link(__('Log out', true), array('controller' => 'users', 'action' => 'logout'));?></h1>
|
||||
<div class="noprint"><h1 style="float:left;">Download: <?php echo $this->Html->link('PGP/GPG key', '/gpg.asc');?></h1>
|
||||
<h1 style="float:right;"> <?php echo $this->Html->link(__('Log out', true), array('controller' => 'users', 'action' => 'logout'));?></h1></div>
|
||||
|
||||
<h1 style="text-align:center;"><?php echo Configure::read('CyDefSIG.footer')?></h1>
|
||||
</div>
|
||||
|
|
|
@ -113,6 +113,9 @@ div.view {
|
|||
div.actions {
|
||||
display: none;
|
||||
}
|
||||
div.noprint {
|
||||
display: none;
|
||||
}
|
||||
div.actions h3 {
|
||||
padding-top:0;
|
||||
color:#777;
|
||||
|
@ -169,7 +172,7 @@ td.short {
|
|||
}
|
||||
|
||||
/* added */
|
||||
div .events table tr:hover, div .events table tr.altrow:hover, div .attributes table tr:hover, div .attributes table tr.altrow:hover{
|
||||
div .events table tr:hover, div .events table tr.altrow:hover, div .signatures table tr:hover, div .signatures table tr.altrow:hover{
|
||||
background-color: #F5F5D7;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue