22 Commits

Author SHA1 Message Date
Adarnof
1b4f5e4e88 Adarnof's Little Things (#547)
* Port to Django 1.10
Initial migrations for current states of all models. Requires faking to retain data.
Removed all references to render_to_response, replacing with render shortcut.
Same for HttpResponseRedirect to render shortcut.
Corrected notification signal import to wait for app registry to finish loading.

* Correct typos from render conversion

* Modify models to suppress Django field warnings

* Script for automatic database conversion
 - fakes initial migrations to preserve data
Include LOGIN_URL setting

* Correct context processor import typo

* Removed pathfinder support.
Current pathfinder versions require SSO, not APIs added to database.
Conditionally load additional database definitions only if services are enabled.
Prevents errors when running auth without creating all possible databases.

* Condense context processors

* Include Django 1.10 installation in migrate script
Remove syncdb/evolve, replace with migrate for update script

* Replaced member/blue perms with user state system
Removed sigtracker
Initial migrations for default perms and groups
Removed perm bootstrapping on first run

* Clean up services list

* Remove fleet fittings page

* Provide action feedback via django messaging
Display unread notification count
Correct left navbar alignment

* Stop storing service passwords.
Provide them one time upon activation or reset.
Closes #177

* Add group sync buttons to admin site
Allow searcing of AuthServicesInfo models
Display user main character

* Correct button CSS to remove underlines on hover

* Added bulk actions to notifications
Altered notification default ordering

* Centralize API key validation.
Remove unused error count on API key model.
Restructure API key refresh task to queue all keys per user and await completion.
Closes #350

* Example configuration files for supervisor.
Copy to /etc/supervisor/conf.d and restart to take effect.
Closes #521
Closes #266

* Pre-save receiver for member/blue state switching
Removed is_blue field
Added link to admin site

* Remove all hardcoded URLs from views and templates
Correct missing render arguments
Closes #540

* Correct celeryd process directory

* Migration to automatically set user states.
Runs instead of waiting for next API refresh cycle. Should make the transition much easier.

* Verify service accounts accessible to member state

* Restructure project to remove unnecessary apps.
(celerytask, util, portal, registraion apps)
Added workarounds for python 3 compatibility.

* Correct python2 compatibility

* Check services against state being changed to

* Python3 compatibility fixes

* Relocate x2bool py3 fix

* SSO integration for logging in to existing accounts.

* Add missing url names for fleetup reverse

* Sanitize groupnames before syncing.

* Correct trailing slash preventing url resolution

* Alter group name sanitization to allow periods and hyphens

* Correct state check on pre_save model for corp/alliance group assignment

* Remove sigtracker table from old dbs to allow user deletion

* Include missing celery configuration

* Teamspeak error handling

* Prevent celery worker deadlock on async group result wait

* Correct active navbar links for translated urls.
Correct corp status url resolution for some links.
Remove DiscordAuthToken model.
2016-10-16 18:01:14 -04:00
moriartyj
f6a177295d Automatic rejection of old API IDs (#441)
Automatic rejection of old API IDs
Closes #436
2016-05-27 09:24:35 -04:00
Adarnof
d461e6af79 Move error handling to api calls
- allows interpretation of diffferent evelink codes
2016-03-17 22:18:02 +00:00
Adarnof
fa60be3675 Ensure entered api ID is int
Auth accepts these values in either order for building the model, but incorrectly assigns the vcode instead of ID to character models if entered incorrectly which can break certain functions.

This is an added layer of stupid-protection to make sure they put the API ID (a number) in the right field.
2016-03-06 15:58:11 -05:00
Adarnof
6bbea6eeda Added check to ensure api is valid before pulling characters 2016-02-18 20:25:43 +00:00
Adarnof
e4f3eb5370 Updated api validation failure message 2016-01-31 18:08:46 +00:00
Adarnof
c50595303b Corrected key validation 2016-01-31 18:02:20 +00:00
Adarnof
cce940f9a2 Corrected form validation
Corrected logging comments
2015-12-11 14:02:15 +00:00
Adarnof
696483baa6 Updated API refresh to assign states properly
Corrected form comments
2015-12-11 13:28:51 +00:00
Adarnof
d4b9186c61 API form validates by member and characters
Functions to determine membership level of user and eve characters
2015-12-11 12:50:30 +00:00
Adarnof
a789edb3d8 Logging everywhere.
Corrected corp model updating logic to handle owning corp.
Corrected typecasting during api access mask comparison.
Removed error protection during user TS3 group updating to propogate errors.

Relevent issues:
Sorry for the spam.
2016-01-02 21:24:40 +00:00
Adarnof
35277b7f33 Manual conflict resoltuion for pull request #98 2015-11-25 02:59:13 +00:00
Adarnof
a3de13f055 cleaned up settings descriptions
incorporated alliance/corp check into main character change
restored alliance text to forms
returned optional alliance checking to periodic tasks (pray for me)
deleted accidental inclusion of PID file

this is gonna tickle.

Signed-off-by: Adarnof <adarnof@gmail.com>
2015-10-31 17:35:00 -04:00
Adarnof
c227695160 Removed references to blue alliance standings, replaced with blue corp standings. 2015-09-18 03:53:37 +00:00
Raynaldo Rivera
9b14137681 Fixed issue with adding api keys. 2014-11-04 16:44:27 -07:00
Raynaldo Rivera
48373c285a Added blue support to the auth 2014-11-02 21:53:26 -07:00
Raynaldo Rivera
19e19d89e4 Reformatted code for easy reading. 2014-10-26 16:47:21 -07:00
Raynaldo Rivera
0ac78b25d8 Added requirement for full api key 2014-10-19 11:16:55 -07:00
Raynaldo Rivera
cdddfc8153 Added a check on the api key for duplicate keys 2014-10-16 17:59:18 -07:00
Raynaldo Rivera
20b9152a1c Added api mask to html added check 2014-10-12 18:53:20 -07:00
Raynaldo Rivera
eed40b3983 Added new labels for api key 2014-10-12 13:32:46 -07:00
Raynaldo Rivera
a8571dd1c0 Redone correctly , structure, its pretty 2014-10-08 19:15:17 -07:00