diff --git a/src/app/accounts/apiKey.component.html b/src/app/accounts/apiKey.component.html
index 7e497fa6..710bacb6 100644
--- a/src/app/accounts/apiKey.component.html
+++ b/src/app/accounts/apiKey.component.html
@@ -15,8 +15,15 @@
diff --git a/src/app/accounts/apiKey.component.ts b/src/app/accounts/apiKey.component.ts
index 0e46788d..0df06b09 100644
--- a/src/app/accounts/apiKey.component.ts
+++ b/src/app/accounts/apiKey.component.ts
@@ -29,6 +29,7 @@ export class ApiKeyComponent {
formPromise: Promise
;
successRoute = '/tabs/dashboard';
+ showSecret: boolean = false;
constructor(private authService: AuthService, private apiKeyService: ApiKeyService, private router: Router,
private i18nService: I18nService, private componentFactoryResolver: ComponentFactoryResolver,
@@ -77,4 +78,8 @@ export class ApiKeyComponent {
modal.close();
});
}
+ toggleSecret() {
+ this.showSecret = !this.showSecret;
+ document.getElementById('clientSecret').focus();
+ }
}
diff --git a/src/app/tabs/settings.component.html b/src/app/tabs/settings.component.html
index 0131a4a2..bd67de09 100644
--- a/src/app/tabs/settings.component.html
+++ b/src/app/tabs/settings.component.html
@@ -121,8 +121,15 @@
@@ -139,7 +146,15 @@
@@ -150,8 +165,15 @@
@@ -162,8 +184,15 @@
diff --git a/src/app/tabs/settings.component.ts b/src/app/tabs/settings.component.ts
index 90e6337a..b58ac999 100644
--- a/src/app/tabs/settings.component.ts
+++ b/src/app/tabs/settings.component.ts
@@ -38,6 +38,10 @@ export class SettingsComponent implements OnInit, OnDestroy {
oneLogin = new OneLoginConfiguration();
sync = new SyncConfiguration();
directoryOptions: any[];
+ showLdapPassword: boolean = false;
+ showAzureKey: boolean = false;
+ showOktaKey: boolean = false;
+ showOneLoginSecret: boolean = false;
constructor(private i18nService: I18nService, private configurationService: ConfigurationService,
private changeDetectorRef: ChangeDetectorRef, private ngZone: NgZone,
@@ -126,4 +130,20 @@ export class SettingsComponent implements OnInit, OnDestroy {
filePicker.type = 'file';
filePicker.value = '';
}
+ toggleLdapPassword() {
+ this.showLdapPassword = !this.showLdapPassword;
+ document.getElementById('masterPassword').focus();
+ }
+ toggleAzureKey() {
+ this.showAzureKey = !this.showAzureKey;
+ document.getElementById('masterPassword').focus();
+ }
+ toggleOktaKey() {
+ this.showOktaKey = !this.showOktaKey;
+ document.getElementById('masterPassword').focus();
+ }
+ toggleOneLoginSecret() {
+ this.showOneLoginSecret = !this.showOneLoginSecret;
+ document.getElementById('masterPassword').focus();
+ }
}