server/services/authService.js
// Note: doesn't validate the password so it must be validated before calling the method
doesn't validate the password so it must be validated before calling the method
doesn ' t validate the password so it must be validated before calling the method
static changePassword(token, password) {
    return AuthService.findUserByToken(token)
      .then((user) => {
        user.password = AuthService.getPwdHash(password);
        return user.save();
      });
  }
static changePassword ( token , password ) { return AuthService . findUserByToken ( token ) . then ( ( user ) => { user . password = AuthService . getPwdHash ( password ) ; return user . save ( ) ; } ) ; }
Note: doesn't validate the password so it must be validated before calling the method
Note : doesn ' t validate the password so it must be validated before calling the method