Add @ back in as a valid password character (#312)

This commit is contained in:
Tim Wilkinson 2022-03-20 15:46:56 -07:00 committed by GitHub
parent ce2f47e06d
commit 69c0d51216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ do
err(val .. " this client must be added or cleared out before saving changes") err(val .. " this client must be added or cleared out before saving changes")
break break
end end
if passwd:match("%W") then if passwd:match("[^%w@]") then
err("The password cannot contain non-alphanumeric characters (#" .. client_num .. ")") err("The password cannot contain non-alphanumeric characters (#" .. client_num .. ")")
end end
if not passwd:match("%a") then if not passwd:match("%a") then

View File

@ -256,7 +256,7 @@ do
err(val .. " this connection must be added or cleared out before saving changes") err(val .. " this connection must be added or cleared out before saving changes")
break break
end end
if passwd:match("%W") then if passwd:match("[^%w@]") then
err("The password cannot contain non-alphanumeric characters (#" .. conn_num .. ")") err("The password cannot contain non-alphanumeric characters (#" .. conn_num .. ")")
end end
if host == "" then if host == "" then