akveo / ngx-admin

Customizable admin dashboard template based on Angular 10+
https://akveo.github.io/ngx-admin/
MIT License
25.21k stars 7.95k forks source link

How to get the Auth modules to work? #1369

Closed itanimo closed 6 years ago

itanimo commented 6 years ago

I'm trying to configure my login/logout/auth services in my application however I can't find the proper ts files to configure it. All I was able to find were the auth folder in node_modules/nebular/auth/components

directory. Where should I apply the proper http urls , session token management, and such?

Example of what I need to add:

` public onSubmit(values: Object): void {

this.submitted = true;

if (this.form.valid) {

  this.loading = true;

  console.log(this.username.value);

  this.authenticationService.login(this.username.value, this.password.value)

    .subscribe(

    data => {

      this.router.navigate(['dashboard']);

    },

    error => {

      console.log(error);

    });
}

}` Where can I modify the login component for example? I couldn't find any login.component.ts, only login.component.d.ts

nnixaa commented 6 years ago

Hi @Safo91, please don't duplicate your questions through the repos as it just gives us more unnecessary work writing these replies instead of working on the actual tasks. Thanks. https://github.com/akveo/nebular/issues/61