mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-06 15:16:20 +01:00
Restructure settings (#882)
* Refactor settings into importable base. User deployment should use 'from allianceauth.settings.base import *' in their project settings. * Restructure tests folder. Remove DOMAIN setting. Use localhost for services revoked emails. * Add missing python3.4 typing requirement typing is included python3.5+ * Remove legacy setup comments Remove legacy update script
This commit is contained in:
@@ -195,7 +195,7 @@ class Phpbb3Manager:
|
||||
cursor = connections['phpbb3'].cursor()
|
||||
|
||||
password = Phpbb3Manager.__gen_hash(Phpbb3Manager.__generate_random_pass())
|
||||
revoke_email = "revoked@" + settings.DOMAIN
|
||||
revoke_email = "revoked@localhost"
|
||||
try:
|
||||
pwhash = Phpbb3Manager.__gen_hash(password)
|
||||
cursor.execute(Phpbb3Manager.SQL_DIS_USER, [revoke_email, pwhash, username])
|
||||
|
||||
@@ -235,7 +235,7 @@ class SmfManager:
|
||||
cursor = connections['smf'].cursor()
|
||||
|
||||
password = cls.generate_random_pass()
|
||||
revoke_email = "revoked@" + settings.DOMAIN
|
||||
revoke_email = "revoked@localhost"
|
||||
try:
|
||||
pwhash = cls.gen_hash(username, password)
|
||||
cursor.execute(cls.SQL_DIS_USER, [revoke_email, pwhash, username])
|
||||
|
||||
Reference in New Issue
Block a user