mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-29 18:35:19 +08:00
CB-4561 te UI dynamic connection credentials based on the users team (#2381)
* CB-4598 npe fix * CB-4561 refactor: connection info resource * CB-4561 refactor: connection info resource * CB-4561 load credentials from secret in initConnection * CB-4561 merge devel * CB-4561 allow initial team secrets test * CB-4561 remove ability to use any secret in test connection * CB-4561 feat: shared credentials management * CB-4561 feat: connection secret authentication * CB-4561 little fix * CB-4561 feat: shared credentials * CB-4561 chore: remove save credentials checkbox for shared credentials * CB-4561 fix: send saved state for shared connection credentials * CB-4561 feat: change shared secret authentication description * CB-4561 fix: pr review comments * CB-4561 fix: disable connection test for shared connections in distributed env * CB-4561 fix: types --------- Co-authored-by: Aleksandr Skoblikov <aleksandr.skoblikov@dbeaver.com> Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
This commit is contained in:
co-authored by
Aleksandr Skoblikov
mr-anton-t
parent
662d991aca
commit
2b90eb038e
+26
-4
@@ -23,7 +23,15 @@ export const ChangePassword = observer(function ChangePassword() {
|
||||
<Form context={form}>
|
||||
<Group form gap>
|
||||
<GroupTitle>{translate('plugin_user_profile_authentication_change_password')}</GroupTitle>
|
||||
<InputField type="password" name="oldPassword" state={state.config} disabled={disabled} mapValue={value => value.trim()} small required>
|
||||
<InputField
|
||||
type="password"
|
||||
name="oldPassword"
|
||||
state={state.config}
|
||||
disabled={disabled}
|
||||
mapValue={(value?: string) => value?.trim() ?? ''}
|
||||
small
|
||||
required
|
||||
>
|
||||
{translate('plugin_user_profile_authentication_change_password_current_password')}
|
||||
</InputField>
|
||||
<InputField
|
||||
@@ -32,17 +40,31 @@ export const ChangePassword = observer(function ChangePassword() {
|
||||
autoComplete="new-password"
|
||||
state={state.config}
|
||||
disabled={disabled}
|
||||
mapValue={value => value.trim()}
|
||||
mapValue={(value?: string) => value?.trim() ?? ''}
|
||||
small
|
||||
required
|
||||
>
|
||||
{translate('plugin_user_profile_authentication_change_password_new_password')}
|
||||
</InputField>
|
||||
<InputField type="password" name="repeatedPassword" state={state.config} disabled={disabled} mapValue={value => value.trim()} small required>
|
||||
<InputField
|
||||
type="password"
|
||||
name="repeatedPassword"
|
||||
state={state.config}
|
||||
disabled={disabled}
|
||||
mapValue={(value?: string) => value?.trim() ?? ''}
|
||||
small
|
||||
required
|
||||
>
|
||||
{translate('plugin_user_profile_authentication_change_password_repeat_password')}
|
||||
</InputField>
|
||||
<GroupItem>
|
||||
<Button disabled={disabled || !state.formFilled} loading={state.submitting} type="button" mod={['unelevated']} onClick={() => form.submit()}>
|
||||
<Button
|
||||
disabled={disabled || !state.formFilled}
|
||||
loading={state.submitting}
|
||||
type="button"
|
||||
mod={['unelevated']}
|
||||
onClick={() => form.submit()}
|
||||
>
|
||||
{translate('plugin_user_profile_authentication_change_password_submit_label')}
|
||||
</Button>
|
||||
</GroupItem>
|
||||
|
||||
Reference in New Issue
Block a user