Hi , Iam using Metronics Angular , i need to remove the authentication of metronics , which means that even if i give wrong emaild id and password , so its needs to go dashboard smoothly , can u please inform here which file or code i need to remove authentication . please inform how can i remove Authention in metronic angular project.
Thank you !
You're welcome! I'm glad I could help. If you have any more questions or need further assistance, feel free to ask. Happy coding!
Thanks
Hi,
To remove authentication in the Metronic Angular project, specifically the `canActivate: [AuthGuard]` check, follow these steps:
1. Open the `app-routing.module.ts` file located in the `src/app` directory of your project.
2. Look for the route configuration that contains `canActivate: [AuthGuard]`.
3. Remove the `canActivate: [AuthGuard]` property from that specific route.
For example, if you have a route defined like this:
{
path: "",
canActivate: [AuthGuard],
loadChildren: () =>
import("./_metronic/layout/layout.module").then((m) => m.LayoutModule),
}
{
path: "",
loadChildren: () =>
import("./_metronic/layout/layout.module").then((m) => m.LayoutModule),
}
Thank you Faizal