message: Fix promise chain for registration and reset, solves
diff: @@ -38,14 +38,14 @@ export class AuthController {
  return newUser.save();
  })
  .then((savedUser) => {
  - emailService.sendActivation(savedUser)
  + return emailService.sendActivation(savedUser);
  + })
  .then(() => {
  return {success: true};
  })
  .catch((err) => {
  throw new InternalServerError('Could not send E-Mail');
  });
  - });
  }
  // TODO If activate user and is in playlist add to course.
  @@ -84,7 +84,6 @@ export class AuthController {
  return existingUser.save();
  })
  .then((savedUser) => {
  -
  return {success: true};
  });
  }
  @@ -106,13 +105,13 @@ export class AuthController {
  return existingUser.save();
  })
  .then((user) => {
  - return emailService.sendPasswordReset(user)
  + return emailService.sendPasswordReset(user);
  + })
  .then(() => {
  return {success: true};
  })
  .catch((err) => {
  throw new InternalServerError('Could not send E-Mail');
  });
  - });
  }
  }
  