check_userinfo(user, password = nil)
private
check the user and password.
If password is not
provided, then user is split,
using URI::Generic.split_userinfo, to pull user and +password.
see also URI::Generic.check_user, URI::Generic.check_password
Show source
def check_userinfo(user, password = nil)
if !password
user, password = split_userinfo(user)
end
check_user(user)
check_password(password, user)
return true
end