Do not show password prompt when enabling WebDAV if using basic auth.

Correct the check for basic authentication to prevent prompting the user to create a password when enabling WebDAV. Also, do not try to hide the prompt because it's not shown when using basic authentication. This was preventing the success message from showing.