Added violation db field to keys, and added check for when keys are added that include characters that are owned by other Core accounts.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fixed bug where everything was shifted improperly in the table for non-violation keys.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fix bug that prevented the addition of new characters to the database.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Adds check to prevent the addition of API Keys alerady in the database.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fix whitespace issues, and remove temp code from the key delete function.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Merge branch 'develop' of https://github.com/bravecollective/core into feature/fixDuplicateCharacters

Conflicts:
	brave/core/key/model.py

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fix some bugs that lead to keys getting improperly marked as security violations, and fixes a bug preventing keys from getting marked as compliant.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Security violations now show up in the table row that is updated via javascript.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Adds additional information about security violations when the user hovers over the text of the violation.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Makes the key field unique and catches errors when users try to add a key that's already been added.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Merge branch 'feature/fixDuplicateCharacters' into develop

Conflicts:
	brave/core/key/model.py

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Remove redundant check for uniqueness of API keys, change the false state of violation to None, and fix a bug that was causing the violation status returned ajaxily to be incorrect.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Handle the async pull request by save properly when initially adding a key.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fix a bug that could occur when 3 accounts all have keys for the same character.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fix a bug where the character list returned by a key could be inaccurate.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fix syntax errror. I really should double check for those before pushing...

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Merge pull request #164 from Acidity/feature/fixDuplicateCharacters

Feature/fix duplicate characters (fixes #31, #33, #34, #46)
Fix import error

Really this is a questionable dependency; util ought not to rely on
model. This should be remedied. Moving the mask class to this
file would be perfectly reasonable.
Add escaping in a bunch of places

This does not solve everything, but it's a big step. Improving on this
will probably require fixing the confirm dialog.

Longer term steps:
 - Don't substitute values into JS. Move JS out of templates to help
   this not happen accidentally.
 - Move to a templating language that automatically does context-aware
   escaping. Because it's not the 1990s.
Merge pull request #174 from eve-val/fix-mask-import

Fix import error