mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5332] Login basic auth - Ability to override the successRoute from app.config.json (#6651)
* ability to override successRoute from app.config * Add basic doc * Reset the appconfig * Rebase and handle login errors * Remove the default route / * remove space
This commit is contained in:
@@ -150,6 +150,8 @@ export class LoginComponent implements OnInit, OnDestroy {
|
||||
this.initFormFieldsDefault();
|
||||
this.initFormFieldsMessages();
|
||||
|
||||
this.successRoute = this.appConfig.get<string>('successRoute', this.successRoute);
|
||||
|
||||
if (this.authService.isLoggedIn()) {
|
||||
this.router.navigate([this.successRoute]);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user