mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-7100] ESLint support for ADF Core and DemoShell projects (#7481)
* remove tsconfig.base as per eslint schematics * add schematics * upgrade demoshell to eslint * fix eslint issues for demoshell * integrate eslint for ADF core and fix some issues * turn into warn * fix code * workaround for Chrome clipboard issue * exclude e2e tests * exclude e2e
This commit is contained in:
@@ -162,7 +162,7 @@ export class AuthenticationService {
|
||||
* @param rememberMe Stores the user's login details if true
|
||||
* @returns Object with auth type ("ECM", "BPM" or "ALL") and auth ticket
|
||||
*/
|
||||
login(username: string, password: string, rememberMe: boolean = false): Observable<{ type: string, ticket: any }> {
|
||||
login(username: string, password: string, rememberMe: boolean = false): Observable<{ type: string; ticket: any }> {
|
||||
return from(this.alfrescoApi.getInstance().login(username, password))
|
||||
.pipe(
|
||||
map((response: any) => {
|
||||
@@ -313,7 +313,7 @@ export class AuthenticationService {
|
||||
* @returns The redirect URL
|
||||
*/
|
||||
getRedirect(): string {
|
||||
const provider = <string> this.appConfig.get(AppConfigValues.PROVIDERS);
|
||||
const provider = this.appConfig.get<string>(AppConfigValues.PROVIDERS);
|
||||
return this.hasValidRedirection(provider) ? this.redirectUrl.url : null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user