committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 137 additions and 36 deletions
-
7README.md
-
1hooks/post_user_create
-
2manifest.json
-
25pull_request_template.md
-
49scripts/_common.sh
-
26scripts/install
-
9scripts/restore
-
28scripts/upgrade
-
8scripts/upgrade.d/upgrade.last.sh
-
0sources/patches/.gitignore
-
10sources/patches_last_version/app-00-add-logout_url-conf.patch
@ -0,0 +1,25 @@ |
|||||
|
## Problem |
||||
|
- *Description of why you made this PR* |
||||
|
|
||||
|
## Solution |
||||
|
- *And how you fix that* |
||||
|
|
||||
|
## PR Status |
||||
|
- [ ] Code finished. |
||||
|
- [ ] Tested with Package_check. |
||||
|
- [ ] Fix or enhancement tested. |
||||
|
- [ ] Upgrade from last version tested. |
||||
|
- [ ] Can be reviewed and tested. |
||||
|
|
||||
|
## Validation |
||||
|
--- |
||||
|
*Minor decision* |
||||
|
- **Upgrade previous version** : |
||||
|
- [ ] **Code review** : |
||||
|
- [ ] **Approval (LGTM)** : |
||||
|
- [ ] **Approval (LGTM)** : |
||||
|
- **CI succeeded** : |
||||
|
[/badge/icon)](https://ci-apps-dev.yunohost.org/jenkins/job/nextcloud_ynh%20-BRANCH-%20(Official)/) *Please replace '-BRANCH-' in this link for a PR from a local branch.* |
||||
|
or |
||||
|
[/badge/icon)](https://ci-apps-dev.yunohost.org/jenkins/job/nextcloud_ynh%20PR-NUM-%20(Official_fork)/) *Replace '-NUM-' by the PR number in this link for a PR from a forked repository.* |
||||
|
When the PR is marked as ready to merge, you have to wait for 3 days before really merging it. |
||||
@ -1,7 +1,11 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
|
|
||||
# Last available nextcloud version |
# Last available nextcloud version |
||||
next_version="13.0.1" |
|
||||
|
next_version="13.0.2" |
||||
|
|
||||
# Nextcloud tarball checksum sha256 |
# Nextcloud tarball checksum sha256 |
||||
nextcloud_source_sha256="5743314a71e972ae46a14b36b37394d4545915aa5f32d9e12ba786d04c1f1d11" |
|
||||
|
nextcloud_source_sha256="7396f98a1a53a9f4b144f55360d87c89cb6ee899feef1cfbf29a736219f9c47d" |
||||
|
|
||||
|
# Patch nextcloud files only for the last version |
||||
|
cp -a ../sources/patches_last_version/* ../sources/patches |
||||
|
|
||||
@ -1,14 +1,14 @@ |
|||||
--- a/core/Controller/LoginController.php
|
--- a/core/Controller/LoginController.php
|
||||
+++ b/core/Controller/LoginController.php
|
+++ b/core/Controller/LoginController.php
|
||||
@@ -100,7 +100,10 @@ class LoginController extends Controller {
|
|
||||
|
@@ -119,7 +119,10 @@
|
||||
} |
} |
||||
$this->userSession->logout(); |
$this->userSession->logout(); |
||||
|
|
||||
- return new RedirectResponse($this->urlGenerator->linkToRouteAbsolute('core.login.showLoginForm'));
|
|
||||
|
- $response = new RedirectResponse($this->urlGenerator->linkToRouteAbsolute('core.login.showLoginForm'));
|
||||
+ $redirectUrl = $this->config->getSystemValue('logout_url',
|
+ $redirectUrl = $this->config->getSystemValue('logout_url',
|
||||
+ $this->urlGenerator->linkToRouteAbsolute('core.login.showLoginForm')
|
+ $this->urlGenerator->linkToRouteAbsolute('core.login.showLoginForm')
|
||||
+ );
|
+ );
|
||||
+ return new RedirectResponse($redirectUrl);
|
|
||||
|
+ $response = new RedirectResponse($redirectUrl);
|
||||
|
$response->addHeader('Clear-Site-Data', '"cache", "cookies", "storage", "executionContexts"'); |
||||
|
return $response; |
||||
} |
} |
||||
|
|
||||
/** |
|
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue