mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Small cleanup, dont assign a var if its only used one
This commit is contained in:
@@ -127,8 +127,7 @@ class JabberAdmin():
|
||||
except:
|
||||
return False
|
||||
|
||||
pass = hashlib.sha1('%s%s%s' % (username, random.randint(0, 2147483647))).hexdigest()
|
||||
if self.resetpassword(username, pass):
|
||||
if self.resetpassword(username, hashlib.sha1('%s%s%s' % (username, random.randint(0, 2147483647))).hexdigest()):
|
||||
return self.kickuser(username)
|
||||
else:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user