mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-17 11:49:29 +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:
|
except:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
pass = hashlib.sha1('%s%s%s' % (username, random.randint(0, 2147483647))).hexdigest()
|
if self.resetpassword(username, hashlib.sha1('%s%s%s' % (username, random.randint(0, 2147483647))).hexdigest()):
|
||||||
if self.resetpassword(username, pass):
|
|
||||||
return self.kickuser(username)
|
return self.kickuser(username)
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user