Skip to content

Commit

Permalink
Merge branch 'master' into feature/1622-edit-comments-on-todos
Browse files Browse the repository at this point in the history
  • Loading branch information
sinejespersen authored Jun 25, 2024
2 parents c34efd0 + 5cb62d9 commit ae32220
Show file tree
Hide file tree
Showing 237 changed files with 3,784 additions and 2,952 deletions.
5 changes: 5 additions & 0 deletions .dev/test.env
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,8 @@ LEAN_OIDC_CLIEND_SECRET =
#LEAN_OIDC_USERINFO_URL_OVERRIDE = https://api.github.com/user,https://api.github.com/user/emails
#LEAN_OIDC_SCOPES = user:email
#LEAN_OIDC_FIELD_EMAIL = 0.email

LEAN_RATELIMIT_GENERAL = 50000
LEAN_RATELIMIT_AUTH = 50000
LEAN_RATELIMIT_API = 50000

8 changes: 3 additions & 5 deletions .idea/leantime-oss.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/phpspec.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions app/Core/ApiSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,16 @@ public static function oAuth2Grants(
} else {
$middleware_params[] = new ClientCredentials($client, $creds);
}

if ($usesRefresh) {
$middleware_params[] = new RefreshToken($client, $creds);
}

} else {
$middleware_params[] = $customGrantType;
}

if ($usesRefresh) {
$middleware_params[] = new RefreshToken($client, $creds);
}


$stack = HandlerStack::create();
$oauth = new OAuth2Middleware(...$middleware_params);
Expand Down
17 changes: 1 addition & 16 deletions app/Core/AppSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class AppSettings
{

public string $appVersion = "3.1.4";
public string $appVersion = "3.2.0-beta";


public string $dbVersion = "3.0.2";
Expand Down Expand Up @@ -40,21 +40,6 @@ public function loadSettings(Environment $config = null): void
ini_set('display_errors', 0);
}

if (session_status() !== PHP_SESSION_ACTIVE) {
if (filter_var($config->useRedis, FILTER_VALIDATE_BOOL) && (!defined("LEAN_CLI") || !LEAN_CLI)) {
ini_set('session.save_handler', 'redis');
ini_set('session.save_path', $config->redisUrl);
}

ini_set('session.use_cookies', 1);
ini_set('session.use_only_cookies', 1);
ini_set('session.cookie_httponly', 1);
ini_set('session.use_trans_sid', 0);

}

ini_set('session.cache_limiter', '');

ini_set("log_errors", 1);

if ($config->logPath != '' && $config->logPath != 'null') {
Expand Down
Loading

0 comments on commit ae32220

Please sign in to comment.