cancel
Showing results for 
Search instead for 
Did you mean: 

Please tell me how to login?

karin
Champ on-the-rise
Champ on-the-rise

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>

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

1 ACCEPTED ANSWER

eugenio_romano
Elite Collaborator
Elite Collaborator

Hi Karin, 

Maybe you want to consider to go through the tutorials before:

https://www.alfresco.com/abn/adf/docs/tutorials/ 

Eugenio

View answer in original post

3 REPLIES 3

eugenio_romano
Elite Collaborator
Elite Collaborator

Hi Karin, 

Maybe you want to consider to go through the tutorials before:

https://www.alfresco.com/abn/adf/docs/tutorials/ 

Eugenio

Hi Eugenio,

thank you for your message.

but I tried the tutorials, I couldn’t login.

Can’t I use login compornent only following the code?

Is it necessary any code like a event?

——

<adf-login

successRoute=“/home”>

</adf-login>

——

karin
Champ on-the-rise
Champ on-the-rise

Sorry, Might file is corrupted.

I installed on another machine, it did well.