Skip to content

Commit cc130ea

Browse files
guguclaude
andauthored
fix(frontend): add missing password strength provider to setup route (#1576)
The /setup route was missing provideZxvbnServiceForPSM(), causing NG0201 error and blank page when isConfigured returned false. All other routes using UserPasswordComponent already had this provider. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 286ca37 commit cc130ea

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

frontend/src/app/app-routing.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { NgModule } from '@angular/core';
22
import { RouterModule, Routes } from '@angular/router';
3+
import { provideZxvbnServiceForPSM } from 'angular-password-strength-meter/zxcvbn';
34
import { AuthGuard } from './auth.guard';
45
import { configurationGuard } from './guards/configuration.guard';
56
import { setupGuard } from './guards/setup.guard';
@@ -18,6 +19,7 @@ const routes: Routes = [
1819
path: 'setup',
1920
loadComponent: () => import('./components/setup/setup.component').then((m) => m.SetupComponent),
2021
canActivate: [setupGuard],
22+
providers: [provideZxvbnServiceForPSM()],
2123
title: 'Setup | Rocketadmin',
2224
},
2325
{

0 commit comments

Comments
 (0)