* [FIX] Prevent to log out when master pass is changed on log in

* [MOD] UI tweaks

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
nuxsmin
2018-10-07 21:08:08 +02:00
parent 513ab01cff
commit b3bb6255f7
6 changed files with 22 additions and 15 deletions

View File

@@ -3,7 +3,7 @@
#content #data-search {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
justify-content: flex-start;
text-align: center;
padding: 0.5em 0;
width: 100%;

View File

@@ -1,6 +1,6 @@
{
"version": 3,
"mappings": ";;AAIE,qBAAa;EACX,OAAO,EAAE,IAAI;EACb,SAAS,EAAE,IAAI;EACf,eAAe,EAAE,YAAY;EAC7B,UAAU,EAAE,MAAM;EAClB,OAAO,EAAE,OAAO;EAChB,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,MAAM;EAEd,oCAAe;IACb,OAAO,EAAE,IAAI;IACb,eAAe,EAAE,aAAa;IAC9B,SAAS,EAAE,IAAI;IACf,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,GAAG;IACf,MAAM,EAAE,IAAI;IACZ,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,OAAO;IACd,gBAAgB,EAAE,OAAO;IACzB,OAAO,EAAE,MAAM;IAEf;wDACgB;MACd,OAAO,EAAE,IAAI;MACb,SAAS,EAAE,IAAI;MACf,MAAM,EAAE,IAAI;MACZ,UAAU,EAAE,GAAG;MACf,KAAK,EAAE,IAAI;MACX,OAAO,EAAE,OAAO;IAGlB,oDAAgB;MACd,MAAM,EAAE,GAAG;IAGb,gDAAY;MACV,OAAO,EAAE,IAAI;MACb,SAAS,EAAE,IAAI;MACf,WAAW,EAAE,MAAM;MACnB,KAAK,EAAE,IAAI;MACX,MAAM,EAAE,IAAI;IAGd,iDAAa;MACX,OAAO,EAAE,IAAI;MACb,SAAS,EAAE,IAAI;MACf,KAAK,EAAE,IAAI;MACX,MAAM,EAAE,IAAI;MACZ,uDAAQ;QACN,KAAK,EAAE,IA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AAK;MACZ,WAAW,EAAE,IAAI;EAIrB,mCAAc;IACZ,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,GAAG;IACZ,UAAU,EAAE,GAAG;IACf,yCAAQ;MACN,OAAO,EAAE,CAAC;EAId,sCAAiB;IACf,UAAU,EAAE,QAAQ;IACpB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,iBAAiB;IAC7B,wCAAE;MACA,OAAO,EAAE,EAAE;MACX,8CAAQ;QACN,OAAO,EAAE,CAAC;EAKhB,qCAAgB;IACd,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,GAAG;IACX,KAAK,EAAE,GAAG;EAGZ,+BAAU;IACR,OAAO,EAAE,YAAY;IAErB,wCAAS;MACP,MAAM,EAAE,OAAO;MACf,OAAO,EAAE,GAAG;MACZ,8CAAQ;QACN,OAAO,EAAE,CAAC",
"sources": ["search-card.scss","_base.scss"],
"names": [],
"file": "search-card.css"

View File

@@ -1 +1 @@
@charset "UTF-8";#content #data-search{display:flex;flex-wrap:wrap;justify-content:space-around;text-align:center;padding:.5em 0;width:100%;margin:0 auto}#content #data-search .account-label{display:flex;justify-content:space-between;flex-wrap:wrap;width:25em;min-height:8em;height:auto;text-align:left;margin:.5em .5em;color:#696969;background-color:#fcfcfc;padding:0 .5em}#content #data-search .account-label .label-row-up,#content #data-search .account-label .label-row-down{display:flex;flex-wrap:wrap;height:auto;min-height:3em;width:100%;padding:.5em 0}#content #data-search .account-label .label-row-down{height:3em}#content #data-search .account-label .label-left{display:flex;flex-wrap:wrap;align-items:center;width:100%;height:auto}#content #data-search .account-label .label-right{display:flex;flex-wrap:wrap;width:100%;height:auto}#content #data-search .account-label .label-right>div{width:100%}#content #data-search .account-label .label-field{width:100%;min-height:3em;height:auto;padding:0 .3em}#content #data-search .account-label .field-text{word-wrap:break-word}#content #data-search .account-label .field-text a{color:#5c6bc0}#content #data-search .account-label .field-customer{flex-grow:2}#content #data-search .account-label .field-name{padding:.3em .2em;color:#b9b9b9;text-align:left;border-bottom:1px solid #d9d9d9}#content #data-search .account-label .field-name-hidden{display:none}#content #data-search .account-label .header .field-name{color:white;font-weight:bold}#content #data-search .account-label .no-link,#content #data-search .account-label .no-link a{color:white;font-weight:bold}#content #data-search .account-info{padding:.5em 0 .5em 0;text-align:left;opacity:.3;min-height:4em}#content #data-search .account-info:hover{opacity:1}#content #data-search .account-actions{align-self:baseline;padding:.5em 0;text-align:right;border-top:1px solid #c9c9c9}#content #data-search .account-actions i{opacity:.5}#content #data-search .account-actions i:hover{opacity:1}#content #data-search .account-spacer{float:left;clear:left;height:2em;width:20%}#content #data-search .tags-box{display:inline-block}#content #data-search .tags-box span.tag{cursor:pointer;opacity:.3}#content #data-search .tags-box span.tag:hover{opacity:1}
@charset "UTF-8";#content #data-search{display:flex;flex-wrap:wrap;justify-content:flex-start;text-align:center;padding:.5em 0;width:100%;margin:0 auto}#content #data-search .account-label{display:flex;justify-content:space-between;flex-wrap:wrap;width:25em;min-height:8em;height:auto;text-align:left;margin:.5em .5em;color:#696969;background-color:#fcfcfc;padding:0 .5em}#content #data-search .account-label .label-row-up,#content #data-search .account-label .label-row-down{display:flex;flex-wrap:wrap;height:auto;min-height:3em;width:100%;padding:.5em 0}#content #data-search .account-label .label-row-down{height:3em}#content #data-search .account-label .label-left{display:flex;flex-wrap:wrap;align-items:center;width:100%;height:auto}#content #data-search .account-label .label-right{display:flex;flex-wrap:wrap;width:100%;height:auto}#content #data-search .account-label .label-right>div{width:100%}#content #data-search .account-label .label-field{width:100%;min-height:3em;height:auto;padding:0 .3em}#content #data-search .account-label .field-text{word-wrap:break-word}#content #data-search .account-label .field-text a{color:#5c6bc0}#content #data-search .account-label .field-customer{flex-grow:2}#content #data-search .account-label .field-name{padding:.3em .2em;color:#b9b9b9;text-align:left;border-bottom:1px solid #d9d9d9}#content #data-search .account-label .field-name-hidden{display:none}#content #data-search .account-label .header .field-name{color:white;font-weight:bold}#content #data-search .account-label .no-link,#content #data-search .account-label .no-link a{color:white;font-weight:bold}#content #data-search .account-info{padding:.5em 0 .5em 0;text-align:left;opacity:.3;min-height:4em}#content #data-search .account-info:hover{opacity:1}#content #data-search .account-actions{align-self:baseline;padding:.5em 0;text-align:right;border-top:1px solid #c9c9c9}#content #data-search .account-actions i{opacity:.5}#content #data-search .account-actions i:hover{opacity:1}#content #data-search .account-spacer{float:left;clear:left;height:2em;width:20%}#content #data-search .tags-box{display:inline-block}#content #data-search .tags-box span.tag{cursor:pointer;opacity:.3}#content #data-search .tags-box span.tag:hover{opacity:1}

View File

@@ -5,7 +5,7 @@
#data-search {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
justify-content: flex-start;
text-align: center;
padding: 0.5em 0;
width: 100%;

View File

@@ -45,17 +45,6 @@
</div>
<div class="search-filters">
<?php if ($showGlobalSearch && !$isAdmin): ?>
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect mdl-switch--inline" for="globalSearch"
title="<?php echo __('Búsqueda global'); ?>">
<input type="checkbox" id="globalSearch" class="mdl-switch__input mdl-color-text--indigo-400"
name="chkgsearch" tabindex="2"
<?php echo $searchGlobal ? 'checked="checked"' : ''; ?>/>
<span class="mdl-switch__label" title="<?php echo __('Búsqueda global'); ?>"></span>
</label>
<input type="hidden" name="gsearch" value="<?php echo $searchGlobal; ?>">
<?php endif; ?>
<select id="client" name="client" class="select-box select-box-deselect" tabindex="3">
<option value=""><?php echo __('Seleccionar Cliente'); ?></option>
<?php /** @var \SP\Mvc\View\Components\SelectItem[] $clients */
@@ -76,6 +65,20 @@
</div>
<div class="search-filters">
<div class="filter-buttons">
<?php if ($showGlobalSearch && !$isAdmin): ?>
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect mdl-switch--inline" for="globalSearch"
title="<?php echo __('Búsqueda global'); ?>">
<input type="checkbox" id="globalSearch" class="mdl-switch__input mdl-color-text--indigo-400"
name="chkgsearch" tabindex="2"
<?php echo $searchGlobal ? 'checked="checked"' : ''; ?>/>
<span class="mdl-switch__label" title="<?php echo __('Búsqueda global'); ?>"></span>
</label>
<input type="hidden" name="gsearch" value="<?php echo $searchGlobal; ?>">
<?php endif; ?>
</div>
<div class="filter-buttons">
<button type="button" id="btn-favorite"
class="icon-searchfav mdl-button mdl-js-button mdl-button--icon" tabindex="5">
@@ -92,6 +95,7 @@
<span for="btn-reset"
class="mdl-tooltip mdl-tooltip--bottom"><?php echo $icons->getIconClear()->getTitle(); ?></span>
</div>
<div class="filter-buttons filter-slider">
<span id="txt-slider"></span>
<input id="rpp" name="rpp" class="mdl-slider mdl-js-slider" type="range"

View File

@@ -198,6 +198,9 @@ final class UserPassService extends Service
$this->userRepository->updateMasterPassById($userData->getId(), $response->getCryptMasterPass(), $response->getCryptSecuredKey());
// Update the time when master password was set
$this->context->getUserData()->setLastUpdateMPass(time());
$this->setMasterKeyInContext($userMPass);
return $response;