import { Component, Input, OnInit } from '@angular/core'
-import { Notifier, UserService } from '@app/core'
+import { Notifier } from '@app/core'
import { USER_PASSWORD_VALIDATOR } from '@app/shared/form-validators/user-validators'
-import { FormReactive, FormValidatorService } from '@app/shared/shared-forms'
+import { FormReactive, FormReactiveService } from '@app/shared/shared-forms'
+import { UserAdminService } from '@app/shared/shared-users'
import { UserUpdate } from '@shared/models'
@Component({
@Input() userId: number
constructor (
- protected formValidatorService: FormValidatorService,
+ protected formReactiveService: FormReactiveService,
private notifier: Notifier,
- private userService: UserService
+ private userAdminService: UserAdminService
) {
super()
}
const userUpdate: UserUpdate = this.form.value
- this.userService.updateUser(this.userId, userUpdate)
+ this.userAdminService.updateUser(this.userId, userUpdate)
.subscribe({
next: () => this.notifier.success($localize`Password changed for user ${this.username}.`),