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>
--------------------------------------------
Solved! Go to Solution.
Hi Karin,
Maybe you want to consider to go through the tutorials before:
https://www.alfresco.com/abn/adf/docs/tutorials/
Eugenio
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>
——
Sorry, Might file is corrupted.
I installed on another machine, it did well.
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.