{%
if GetPathSuccess then
    if PwdValid[1] == 0 then
        echo('Set user password successfully.')
    elseif PwdValid[1] == -1 then
        echo('The length of user password is too long.\n')
        echo('User password should less than 21 characters.\n')
    elseif PwdValid[1] == -2 then
        echo('Input password contains incorrect characters.\n')
        echo('Correct character contains any digits, letters, space or the following characters: ' ..
            '`~!@#$%%^&*()-_=+\\|[{}];\'",<.>/?\n')
    elseif PwdValid[1] == -3 then
        echo('Confirm password error.\n')
    end
else
    echo(string.format('User %s doesn\'t exist.', UserName))
end
%}