import { NotificationsService } from 'angular2-notifications';
-import { AccountService } from './account.service';
-import { FormReactive, USER_PASSWORD } from '../shared';
+import { FormReactive, UserService, USER_PASSWORD } from '../shared';
@Component({
selector: 'my-account',
private formBuilder: FormBuilder,
private router: Router,
private notificationsService: NotificationsService,
- private accountService: AccountService
+ private userService: UserService
) {
super();
}
return;
}
- this.accountService.changePassword(newPassword).subscribe(
+ this.userService.changePassword(newPassword).subscribe(
() => this.notificationsService.success('Success', 'Password updated.'),
err => this.error = err