mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-14 19:57:50 +00:00
Fix socket api double send of auth failure notification
The loop was sending failure back after an iteration of the loop that fails to authenticate and then again at the beginning of the next iteration. Remove the end iteration sending so that there is only one iteration of the message
This commit is contained in:
parent
15c9f841f0
commit
51229d8185
@ -46,9 +46,7 @@ def sessionhdl(connection, authname):
|
||||
# element path, that authorization will need to be called
|
||||
# per request the user makes
|
||||
authdata = auth.check_user_passphrase(username, passphrase)
|
||||
if authdata is None:
|
||||
tlvdata.send_tlvdata(connection, {'authpassed': 0})
|
||||
else:
|
||||
if authdata is not None:
|
||||
authenticated = True
|
||||
cfm = authdata[1]
|
||||
tlvdata.send_tlvdata(connection, {'authpassed': 1})
|
||||
|
Loading…
x
Reference in New Issue
Block a user