Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
willbrowningme committed Oct 23, 2019
1 parent 7c27373 commit a59fdf3
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 37 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ Here are a few reasons I can think of:
* Ability to add additional usernames to compartmentalise aliases
* New features added regularly

#### **Is there a browser extension?**

Yes there is an [open-source](https://github.com/anonaddy/browser-extension) browser extension available to download for [Firefox](https://addons.mozilla.org/en-GB/firefox/addon/anonaddy/) and [Chrome](https://chrome.google.com/webstore/detail/anonaddy/iadbdpnoknmbdeolbapdackdcogdmjpe) (also available on other chromium based browsers such as Brave and Vivaldi). You can use the extension to generate UUID aliases remotely.

#### **How do I add my own GPG/OpenPGP key for encryption?**

On the recipients page you simply need to click "Add public key" and paste in your **public** key data. Now all emails forwarded to you will be encrypted with your key. You should also replace the subject line of forwarded messages in your account settings as this cannot be encrypted.
Expand Down Expand Up @@ -166,6 +170,10 @@ Blocked emails do not count towards your bandwidth (e.g. an alias is inactive or

If you get close to your limit you'll be sent an email letting you know. If you continue and go over your limit the server will start discarding emails until your bandwidth resets the next month.

#### **Can I login using an additional username?**

You can add up to 3 additional usernames as a Pro user for a total of 4 (including the one you signed up with). You can currently only login with the one that you originally signed up with.

#### **I'm not receiving any emails, what's wrong?**

Please make sure to add [email protected] to your address book and check your spam folder. Make sure to mark emails from us as safe if they turn up in spam.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ public function destroy($id)

$username->deactivate();

return new AdditionalUsernameResource($username);
return response('', 204);
}
}
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/ActiveAliasController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ public function destroy($id)

$alias->deactivate();

return new AliasResource($alias);
return response('', 204);
}
}
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/ActiveDomainController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ public function destroy($id)

$domain->deactivate();

return new DomainResource($domain);
return response('', 204);
}
}
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/EncryptedRecipientController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ public function destroy($id)

$recipient->update(['should_encrypt' => false]);

return new RecipientResource($recipient);
return response('', 204);
}
}
1 change: 1 addition & 0 deletions app/Jobs/DeleteAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function handle()
$this->user->recipients()->get()->each->delete(); // In order to fire deleting model event.
$this->user->domains()->delete();
$this->user->additionalUsernames()->get()->each->delete(); // In order to fire deleting model event.
$this->user->tokens()->delete();
$this->user->delete();
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"laravel/tinker": "^1.0",
"mews/captcha": "^3.0.0",
"php-mime-mail-parser/php-mime-mail-parser": "^5.0",
"pragmarx/google2fa-laravel": "1.0.1",
"pragmarx/google2fa-laravel": "^1.3",
"predis/predis": "^1.1",
"ramsey/uuid": "^3.8",
"spatie/dns": "^1.4"
Expand Down
46 changes: 23 additions & 23 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion resources/js/components/passport/PersonalAccessTokens.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
>Chrome / Brave</a
>
to generate UUID aliases. Simply paste the token generated below into the browser extension to
get started. Your API Access tokens are secret and should be treated like your password.
get started. Your API access tokens are secret and should be treated like your password. For
more information please see the <a href="/docs" class="text-indigo-700">API documentation</a>.
</p>

<button
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Api/AdditionalUsernamesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ public function user_can_deactivate_additional_username()

$response = $this->json('DELETE', '/api/v1/active-usernames/'.$username->id);

$response->assertStatus(200);
$this->assertEquals(false, $response->getData()->data->active);
$response->assertStatus(204);
$this->assertFalse($this->user->additionalUsernames[0]->active);
}

/** @test */
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Api/AliasesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function user_can_deactivate_alias()

$response = $this->json('DELETE', '/api/v1/active-aliases/'.$alias->id);

$response->assertStatus(200);
$this->assertEquals(false, $response->getData()->data->active);
$response->assertStatus(204);
$this->assertFalse($this->user->aliases[0]->active);
}
}
4 changes: 2 additions & 2 deletions tests/Feature/Api/DomainsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ public function user_can_deactivate_domain()

$response = $this->json('DELETE', '/api/v1/active-domains/'.$domain->id);

$response->assertStatus(200);
$this->assertEquals(false, $response->getData()->data->active);
$response->assertStatus(204);
$this->assertFalse($this->user->domains[0]->active);
}

/** @test */
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Api/RecipientsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public function user_can_turn_off_encryption_for_recipient()

$response = $this->json('DELETE', '/api/v1/encrypted-recipients/'.$recipient->id);

$response->assertStatus(200);
$this->assertEquals(false, $response->getData()->data->should_encrypt);
$response->assertStatus(204);
$this->assertFalse($this->user->recipients[0]->should_encrypt);
}
}

0 comments on commit a59fdf3

Please sign in to comment.