Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117811268
D5086.1775277264.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D5086.1775277264.diff
View Options
diff --git a/src/app/Console/Commands/Data/InitCommand.php b/src/app/Console/Commands/Data/InitCommand.php
--- a/src/app/Console/Commands/Data/InitCommand.php
+++ b/src/app/Console/Commands/Data/InitCommand.php
@@ -78,7 +78,7 @@
// Create a password grant client for the webapp
if (
!empty(\config('auth.proxy.client_secret')) &&
- !Passport::client()->where('name', 'Kolab Password Grant Client')->whereNull('user_id')->exists()
+ !Passport::client()->where('id', \config('auth.proxy.client_id'))->whereNull('user_id')->exists()
) {
$client = Passport::client()->forceFill([
'user_id' => null,
@@ -97,7 +97,7 @@
// Create a client for Webmail SSO
if (
!empty(\config('auth.sso.client_secret')) &&
- !Passport::client()->where('name', 'Webmail SSO client')->whereNull('user_id')->exists()
+ !Passport::client()->where('id', \config('auth.sso.client_id'))->whereNull('user_id')->exists()
) {
$client = Passport::client()->forceFill([
'user_id' => null,
@@ -118,7 +118,7 @@
// Create a client for synapse oauth
if (
!empty(\config('auth.synapse.client_secret')) &&
- !Passport::client()->where('name', 'Synapse oauth client')->whereNull('user_id')->exists()
+ !Passport::client()->where('id', \config('auth.synapse.client_id'))->whereNull('user_id')->exists()
) {
$client = Passport::client()->forceFill([
'user_id' => null,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 4:34 AM (4 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18828116
Default Alt Text
D5086.1775277264.diff (1 KB)
Attached To
Mode
D5086: Lookup existing clients by id, not by name
Attached
Detach File
Event Timeline