mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
Fixed validation check
This commit is contained in:
@@ -63,7 +63,7 @@ class ProcessValidations():
|
|||||||
for msg in inbox:
|
for msg in inbox:
|
||||||
if not msg.was_comment and msg.new:
|
if not msg.was_comment and msg.new:
|
||||||
try:
|
try:
|
||||||
acc = RedditAccount.objects.get(username_iexact=msg.username)
|
acc = RedditAccount.objects.get(username__iexact=msg.author)
|
||||||
if not acc.validated and msg.body == acc.user.username:
|
if not acc.validated and msg.body == acc.user.username:
|
||||||
acc.validated = True
|
acc.validated = True
|
||||||
acc.save()
|
acc.save()
|
||||||
|
|||||||
Reference in New Issue
Block a user