Skip to content
Snippets Groups Projects
Commit 93521a79 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

gh-1512 "console connect doesn't understand uri with empty passwords"

Review fixes:
* revert changes in console.lua, they should be pushed down to
  net.box (it should accept empty passwords)
parent bce88250
No related branches found
No related tags found
No related merge requests found
......@@ -309,12 +309,6 @@ local function connect(uri)
error('Usage: console.connect("[login:password@][host:]port")')
end
if u.login ~= nil and u.password == nil then
-- Not specifying a password means empty password.
-- Required for passwordless URI forms like admin@host
u.password = ''
end
-- connect to remote host
local remote = require('net.box'):new(u.host, u.service,
{ user = u.login, password = u.password })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment