<h4 dir="auto">Issue Description</h4>
<p dir="auto">Campers will often accidentally create duplicate accounts (most of this is because we made the mistake of offering multiple authentication options).</p>
<p dir="auto">When they unsubscribe from emails, we want to make sure they are unsubscribed from all emails for all accounts with that email address, including duplicate accounts.</p>
<p dir="auto">The unsubscribe code just needs to be refactored to get all accounts with that email address. Currently it's a <code class="notranslate">findOne</code> query.</p>
<p dir="auto">It's located in the RandomAPIs.js and the relevant function is called</p>
<p dir="auto">To test your code, you'll want to create multiple accounts that have the same email address. You'll then want to test the unsubscribe functionality (<code class="notranslate">https://www.freecodecamp.com/unsubscribe/[email]</code>) and verify that both accounts are unsubscribed. This means all three of these attributes should be set to false:<br>
"sendMonthlyEmail"<br>
"sendNotificationEmail"<br>
"sendQuincyEmail"</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13212966/9868873/6c07aec6-5b43-11e5-8a31-0fdea1735f03.png"><img src="https://cloud.githubusercontent.com/assets/13212966/9868873/6c07aec6-5b43-11e5-8a31-0fdea1735f03.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Now when I click in the code area.. now all of the lines of the example show up. Why does it do this? Seems like a bug. Thanks</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13212966/9868879/8a1e2430-5b43-11e5-803d-3f880fc4b076.png"><img src="https://cloud.githubusercontent.com/assets/13212966/9868879/8a1e2430-5b43-11e5-803d-3f880fc4b076.png" alt="image" style="max-width: 100%;"></a></p>