35 Commits

Author SHA1 Message Date
Basraah
2dd75b5100 Switched styling to warning, added tooltip 2016-11-24 10:56:36 +10:00
Basraah
1c4d2533b1 Replace API key management w/ ported profile page
Shows characters on each API key, main character, API key
status and the user groups.
2016-11-23 21:17:44 +10:00
Adarnof
98e1689aab Record API SSO status (#568)
Added sso_verified flag to EveApiKeyPair
Set sso_verified flag when user validates API key
Allow users to SSO validate existing API keys
2016-11-01 23:22:15 -04:00
Adarnof
e77c162fa0 API SSO, Beautification of Tables, and more. (#562)
# One Thousandth Commit 🎉 🎈 🎆 🍾

* Allow requiring API ownership validation by SSO.
Closes #163

* Add Discourse group name length restrictions.

* Redirect after api addition/deletion of main character

* Correct admin searching for removed discourse_username field in AuthServicesInfo

* Correct admin function to sync user Discourse groups

* Beautify tables by removing borders and hiding when empty.

*Add buttons on dead-end pages to return to originating view.
2016-10-27 23:28:00 -04:00
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
iAddz
c9e490a5c5 Added German Translations (#406)
* Added German Translations

Translated using
https://docs.djangoproject.com/en/1.9/topics/i18n/translation/

Added language drop down menu's for base.html, registration & login
pages

Known issues:
* Translated items in whtracker>create signature remain translated when
posted
* No date/time localisation for Fleet/Structure timers

* Added time locale

Added date/time locale to
*Structure Timers
*Fleet Timers
*Fleet timer form datetimepicker.js

Fixed a bug where the bootstrap label didn't show up when making a
structure timer using the translated form

Missed some base.html translations

* Small translation error

Some obscure SRP strings went unnoticed for context review

* FAT & Fleet-up German Translations

+ a fix in settings.py.example

The only small thing not done is German Date/Time locale for Fleet-up

* Compiled de/django.po
2016-06-16 22:54:04 +00:00
Ydmir
a2438b2e16 Merged corpstats and membertracking. Added two new permissions, corp_apis and alliance_apis. 2016-02-26 00:15:10 +01:00
Adarnof
2bf133ceee Corrections 2016-02-07 17:28:16 +00:00
Adarnof
2d2afa79eb Added ability to manually trigger api refresh
Ignored cache databases
2016-02-07 11:40:11 +00:00
Adarnof
45e1adf3b3 Merge pull request #200 from Ydmir/corputils
Corputils
2016-01-31 13:58:26 -05:00
Ydmir
786e573a0a Added initial corputils functionality, for auditing members in corporation mode. 2016-01-15 09:23:40 +01:00
Adarnof
cce940f9a2 Corrected form validation
Corrected logging comments
2015-12-11 14:02:15 +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
c066629864 Corrected logging errors. 2016-01-02 22:15:38 +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
4c27452bf9 Added error handling for missing character model. 2015-12-02 06:09:20 +00:00
Adarnof
c85882fa74 Added error handling for missing corp models.
Addresses #116 and more unreported.
2015-12-02 04:46:30 +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
e98bc36a9c Removed all dependency on alliance membership
Renamed permission 'alliance_member' 'member'
Renamed multiple variables in settings.py and associated handlers in util

Maybe it still works?
2015-09-17 04:42:36 +00:00
Raynaldo Rivera
62e06f2c2c Added api jackknife button to corporation stats 2014-11-28 01:10:09 -07:00
Raynaldo Rivera
d0f40307e7 Added alt support to corp stats 2014-11-10 11:33:38 -07:00
Raynaldo Rivera
ea2b5ae819 Fixing issue when characters don't exist in corporations tats 2014-11-10 01:17:49 -07:00
Raynaldo Rivera
55b3e09cec Added basic corporation stats page 2014-11-10 01:03:47 -07:00
Raynaldo Rivera
7a76301956 Fixed issue with blue members getting their accounts nuked on refresh 2014-11-06 16:32:38 -07:00
Raynaldo Rivera
d4f16f49f1 Fixed issue when picking a primary character who is not blue/not in alliance 2014-11-05 13:54:43 -07: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
190947f18d Added group management 2014-10-19 00:47:19 -07:00
Raynaldo Rivera
b869c465bb Added extra check 2014-10-12 17:19:12 -07:00
Raynaldo Rivera
d078690015 Added fix to corp group creation 2014-10-12 13:58:13 -07:00
Raynaldo Rivera
69b3b30f6a Added auto corp group creation and addition 2014-10-12 13:44:16 -07:00
Raynaldo Rivera
534eb460e1 Bug fixes error checking 2014-10-12 10:53:54 -07:00
Raynaldo Rivera
8ce453c6b6 Update to rule all updates. group support and clean up 2014-10-11 16:01:55 -07:00
Raynaldo Rivera
a8571dd1c0 Redone correctly , structure, its pretty 2014-10-08 19:15:17 -07:00