Please tell me how to login?

cancel
Showing results for 
Search instead for 
Did you mean: 
karin
Active Member

Please tell me how to login?

Jump to solution

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 Solution

Accepted Solutions
eugenio_romano
Alfresco Employee

Re: Please tell me how to login?

Jump to solution

Hi Karin, 

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

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

Eugenio

View solution in original post

3 Replies
eugenio_romano
Alfresco Employee

Re: Please tell me how to login?

Jump to solution

Hi Karin, 

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

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

Eugenio

karin
Active Member

Re: Please tell me how to login?

Jump to solution

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
Active Member

Re: Please tell me how to login?

Jump to solution

Sorry, Might file is corrupted.

I installed on another machine, it did well.