Merge branch 'release/5.6.4'

This commit is contained in:
James Cole 2021-11-13 11:11:53 +01:00
commit 2469e1e811
6 changed files with 18 additions and 10 deletions

View File

@ -2,6 +2,11 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## 5.6.4 - 2021-11-13
### Fixed
- [Issue 5276](https://github.com/firefly-iii/firefly-iii/issues/5276) Sloppy release, this fixes an issue with logging out.
## 5.6.3 - 2021-11-12
### Changed

View File

@ -101,7 +101,7 @@ return [
'webhooks' => true,
'handle_debts' => true,
],
'version' => '5.6.3',
'version' => '5.6.4',
'api_version' => '1.5.4',
'db_version' => 18,

View File

@ -25,6 +25,13 @@ $(function () {
configAccounting(currencySymbol);
// on submit of logout button:
$('.logout-link').click(function(e) {
e.preventDefault();
document.getElementById('logout-form').submit();
return false;
});
// on submit of form, disable any button in form:
$('form.form-horizontal:not(.nodisablebutton)').on('submit', function () {
$('button[type="submit"]').prop('disabled', true);

View File

@ -239,6 +239,9 @@
);
}
</script>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
</form>
</body>
</html>

View File

@ -224,11 +224,8 @@
{% if 'remote_user_guard' != authGuard or '' != logoutUri %}
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
</form>
<li>
<a href="{{ route('logout') }}" onclick="event.preventDefault();document.getElementById('logout-form').submit();">
<a href="{{ route('logout') }}" class="logout-link">
<span class="fa fa-sign-out fa-fw"></span>
<span>{{ 'logout'|_ }}</span>
</a>

View File

@ -53,11 +53,7 @@
</li>
{% endif %}
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
</form>
<li><a href="{{ route('logout') }}" onclick="event.preventDefault();document.getElementById('logout-form').submit();">{{ 'logout'|_ }}</a></li>
<li><a href="{{ route('logout') }}" class="logout-link">{{ 'logout'|_ }}</a></li>
{% if true == isInternalAuth and true == isInternalIdentity %}
<li>