Skip to content

Commit

Permalink
change secret field to password and allow toggling visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sadnub committed Oct 22, 2024
1 parent fce4cb8 commit a20074d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/ee/sso/components/SSOProvidersForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,22 @@ For details, see: https://license.tacticalrmm.com/ee
<!-- secret -->
<q-card-section>
<q-input
v-model="localProvider.secret"
filled
:type="hideSecret ? 'password' : 'text'"
label="Secret"
outlined
dense
v-model="localProvider.secret"
:rules="[(val) => !!val || '*Required']"
/>
>
<template v-slot:append>
<q-icon
:name="hideSecret ? 'visibility_off' : 'visibility'"
class="cursor-pointer"
@click="hideSecret = !hideSecret"
/>
</template>
</q-input>
</q-card-section>

<q-card-section>
Expand Down Expand Up @@ -113,6 +123,7 @@ const loading = ref(false);
const { roleOptions } = useRoleDropdown({ onMount: true });
const hideSecret = ref(true);
const localProvider: SSOProvider = props.provider
? reactive(extend({}, props.provider))
: reactive({
Expand Down

0 comments on commit a20074d

Please sign in to comment.