mirror of https://github.com/aredn/aredn.git
Add @ back in as a valid password character (#312)
This commit is contained in:
parent
ce2f47e06d
commit
69c0d51216
|
@ -258,7 +258,7 @@ do
|
|||
err(val .. " this client must be added or cleared out before saving changes")
|
||||
break
|
||||
end
|
||||
if passwd:match("%W") then
|
||||
if passwd:match("[^%w@]") then
|
||||
err("The password cannot contain non-alphanumeric characters (#" .. client_num .. ")")
|
||||
end
|
||||
if not passwd:match("%a") then
|
||||
|
|
|
@ -256,7 +256,7 @@ do
|
|||
err(val .. " this connection must be added or cleared out before saving changes")
|
||||
break
|
||||
end
|
||||
if passwd:match("%W") then
|
||||
if passwd:match("[^%w@]") then
|
||||
err("The password cannot contain non-alphanumeric characters (#" .. conn_num .. ")")
|
||||
end
|
||||
if host == "" then
|
||||
|
|
Loading…
Reference in New Issue