mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
Rename Reddit account password variable to REDDIT_PASSWORD so it gets filtered from debug views
This commit is contained in:
@@ -31,7 +31,7 @@ def send_message(application, message_type, note=None):
|
|||||||
if len(application.user.redditaccount_set.all()) > 0:
|
if len(application.user.redditaccount_set.all()) > 0:
|
||||||
from reddit.api import Inbox, LoginError
|
from reddit.api import Inbox, LoginError
|
||||||
try:
|
try:
|
||||||
ib = Inbox(settings.REDDIT_USER, settings.REDDIT_PASSWD)
|
ib = Inbox(settings.REDDIT_USER, settings.REDDIT_PASSWORD)
|
||||||
except LoginError:
|
except LoginError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ class ProcessValidations():
|
|||||||
return self.__logger
|
return self.__logger
|
||||||
|
|
||||||
def job(self, args):
|
def job(self, args):
|
||||||
inbox = Inbox(settings.REDDIT_USER, settings.REDDIT_PASSWD)
|
inbox = Inbox(settings.REDDIT_USER, settings.REDDIT_PASSWORD)
|
||||||
|
|
||||||
for msg in inbox:
|
for msg in inbox:
|
||||||
if not msg.was_comment:
|
if not msg.was_comment:
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ SLICE = os.path.join(os.path.dirname(os.path.abspath( __file__ )),'Murmur.ice')
|
|||||||
REDDIT_USER = 'DredditVerification'
|
REDDIT_USER = 'DredditVerification'
|
||||||
|
|
||||||
# Password for validatio account
|
# Password for validatio account
|
||||||
REDDIT_PASSWD = ''
|
REDDIT_PASSWORD = ''
|
||||||
|
|
||||||
### HR Settings
|
### HR Settings
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user