1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-15 09:56:33 +00:00

Correct some field typos in creds.Account

This commit is contained in:
dmiller
2014-09-23 05:23:16 +00:00
parent f37ac44380
commit b8d2327c5e

View File

@@ -244,7 +244,7 @@ Account = {
-- @return A new <code>creds.Account</code> object
-- @name Account.new
new = function(self, username, password, state)
local o = { username = username, password = password, state = state }
local o = { username = username, password = password, state = StateMsg[state] or state }
setmetatable(o, self)
self.__index = self
return o
@@ -256,8 +256,8 @@ Account = {
-- @name Account.__tostring
__tostring = function( self )
return (
(self.user and self.user .. ":" or "") ..
(self.pass ~= "" and self.pass or "<empty>") ..
(self.username and self.username .. ":" or "") ..
(self.password ~= "" and self.password or "<empty>") ..
(self.state and " - " .. self.state or "")
)
end,