summaryrefslogtreecommitdiff
path: root/postgresqleu/auth.py
diff options
context:
space:
mode:
authorMagnus Hagander2018-12-14 14:18:55 +0000
committerMagnus Hagander2018-12-14 14:18:55 +0000
commite0bfd4f892e43db89bc996c1474f59c2dd6a8dc6 (patch)
tree052eabf670386672528d170a2ab5231571314c8d /postgresqleu/auth.py
parentae28c2fec8398c753d6d82c3ca65bca067734802 (diff)
Fix comment warnings
In passing remove some comments that were pointless
Diffstat (limited to 'postgresqleu/auth.py')
-rw-r--r--postgresqleu/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/auth.py b/postgresqleu/auth.py
index d861204a..776562d5 100644
--- a/postgresqleu/auth.py
+++ b/postgresqleu/auth.py
@@ -57,7 +57,7 @@ def login(request):
r = Random.new()
iv = r.read(16)
encryptor = AES.new(SHA.new(settings.SECRET_KEY).digest()[:16], AES.MODE_CBC, iv)
- cipher = encryptor.encrypt(s + ' ' * (16 - (len(s) % 16))) # pad to 16 bytes
+ cipher = encryptor.encrypt(s + ' ' * (16 - (len(s) % 16))) # pad to 16 bytes
return HttpResponseRedirect("%s?d=%s$%s" % (
settings.PGAUTH_REDIRECT,