mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-09 04:17:14 +00:00
fix(gitlab): reload application secret after save
The secret was always stored encrypted, but the setup form wiped the input on every load. Load it back for admins (GitHub App parity) so a reload no longer looks like a failed save.
This commit is contained in:
@@ -46,7 +46,8 @@
|
||||
|
||||
<h3 class="pt-4">OAuth Credentials</h3>
|
||||
<x-forms.input canGate="update" :canResource="$gitlab_app" id="clientId" label="Application ID" />
|
||||
<x-forms.input canGate="update" :canResource="$gitlab_app" id="clientSecretInput" label="Application Secret" type="password" />
|
||||
<x-forms.input canGate="update" :canResource="$gitlab_app" id="clientSecretInput" label="Application Secret" type="password"
|
||||
helper="Stored encrypted. Leave empty and save other fields without changing the existing secret." />
|
||||
<x-forms.input canGate="update" :canResource="$gitlab_app" id="groupName" label="Group Name"
|
||||
helper="Comma-separated group names to filter visible repositories." />
|
||||
|
||||
@@ -171,8 +172,9 @@
|
||||
<x-forms.input id="name" label="Name" />
|
||||
<x-forms.input id="clientId" label="Application ID" required
|
||||
helper="The Application ID from your GitLab OAuth Application." />
|
||||
<x-forms.input id="clientSecretInput" label="Application Secret" type="password" required
|
||||
helper="The Secret from your GitLab OAuth Application." />
|
||||
<x-forms.input id="clientSecretInput" label="Application Secret" type="password"
|
||||
:required="blank($clientSecretInput) && blank(data_get($gitlab_app, 'client_secret'))"
|
||||
helper="The Secret from your GitLab OAuth Application. Saved encrypted and shown again after reload." />
|
||||
<x-forms.input id="groupName" label="Group Name"
|
||||
helper="Optional. Comma-separated group names to filter repositories." />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user