mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3912] Setting Component - Return as default BASIC authType (#3495)
* Return as default BASIC authType * remove the commented line
This commit is contained in:
committed by
Eugenio Romano
parent
5b3fb4856d
commit
ae73839e56
@@ -79,14 +79,16 @@ export class HostSettingsComponent implements OnInit {
|
||||
|
||||
let providerSelected = this.appConfig.get<string>(AppConfigValues.PROVIDERS);
|
||||
|
||||
const authType = this.appConfig.get<string>(AppConfigValues.AUTHTYPE, 'BASIC');
|
||||
|
||||
this.form = this.formBuilder.group({
|
||||
providersControl: [providerSelected, Validators.required],
|
||||
authType: this.appConfig.get<string>(AppConfigValues.AUTHTYPE)
|
||||
authType: authType
|
||||
});
|
||||
|
||||
this.addFormGroups();
|
||||
|
||||
if (this.appConfig.get<string>(AppConfigValues.AUTHTYPE) === 'OAUTH') {
|
||||
if (authType === 'OAUTH') {
|
||||
this.addOAuthFormGroup();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user