Skip to content

Instantly share code, notes, and snippets.

View mrmodise's full-sized avatar

Mo mrmodise

  • Johannesburg, South Africa
View GitHub Profile
@mrmodise
mrmodise / di-user.controller.ts
Last active December 22, 2020 08:01
LoopBack 4 password reset models and services
// .....
export class UserController {
constructor(
@inject(TokenServiceBindings.TOKEN_SERVICE)
public jwtService: TokenService,
@inject(UserServiceBindings.USER_SERVICE)
public userService: MyUserService,
@inject(SecurityBindings.USER, {optional: true})
public user: UserProfile,