cleaning up some comments
This commit is contained in:
parent
70cc2c099e
commit
54162416fa
@ -99,8 +99,8 @@ class BfLogin
|
|||||||
request = get_request(uri, pin)
|
request = get_request(uri, pin)
|
||||||
response = http.request(request)
|
response = http.request(request)
|
||||||
|
|
||||||
# <properties sys.validate-password="0"></properties>
|
# wrong: <properties sys.validate-password="0"></properties>
|
||||||
#if response['Content-Type'].eql?('text/html') # crappy cisco devices
|
# right: <properties sys.validate-password="1"></properties>
|
||||||
if response['Content-Type'].eql?('text/plain')
|
if response['Content-Type'].eql?('text/plain')
|
||||||
response.body.match(/1/) ? true : false
|
response.body.match(/1/) ? true : false
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user