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. All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/). 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 ## 5.6.3 - 2021-11-12
### Changed ### Changed

View File

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

View File

@ -25,6 +25,13 @@ $(function () {
configAccounting(currencySymbol); 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: // on submit of form, disable any button in form:
$('form.form-horizontal:not(.nodisablebutton)').on('submit', function () { $('form.form-horizontal:not(.nodisablebutton)').on('submit', function () {
$('button[type="submit"]').prop('disabled', true); $('button[type="submit"]').prop('disabled', true);

View File

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

View File

@ -224,11 +224,8 @@
{% if 'remote_user_guard' != authGuard or '' != logoutUri %} {% 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> <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 class="fa fa-sign-out fa-fw"></span>
<span>{{ 'logout'|_ }}</span> <span>{{ 'logout'|_ }}</span>
</a> </a>

View File

@ -53,11 +53,7 @@
</li> </li>
{% endif %} {% endif %}
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;"> <li><a href="{{ route('logout') }}" class="logout-link">{{ 'logout'|_ }}</a></li>
<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>
{% if true == isInternalAuth and true == isInternalIdentity %} {% if true == isInternalAuth and true == isInternalIdentity %}
<li> <li>