AnsweredAssumed Answered

Please tell me how to login?

Question asked by karin on Feb 22, 2019
Latest reply on Feb 27, 2019 by karin

I just began to use ADF. I want to use login function following this:https://www.alfresco.com/abn/adf/docs/core/login.component/ .

but when I pushed login-button, a loading was shown.

 

I use only process service(BPM).

I want to use the BPM login function.

 

how do I implement login function?

 

----------login.compornent.ts----------

import { Component } from '@angular/core';

@Component({
   selector: 'app-login',
   templateUrl: './login.component.html',
   styleUrls: ['./login.component.css']
})
export class LoginComponent {
   mySuccessMethod($event) {
      console.log('Success Login EventEmitt called with: ' + $event.value);
   }

   myErrorMethod($event) {
      console.log('Error Login EventEmitt called with: ' + $event.value);
   }
}

--------------------------------------------

 

----------login.compornent.html----------

<adf-login
   [showRememberMe]="true"
   [showLoginActions]="false"
   (success)="mySuccessMethod($event)"
   (error)="myErrorMethod($event)"
   successRoute="/home"
   >
   <adf-login-header>
      <ng-template>
         ログインしてください。
      </ng-template>
   </adf-login-header>
</adf-login>

--------------------------------------------

Outcomes