MB-4114 re-factor prompt_the_password
MB-4114 re-factor prompt_the_password

Change-Id: I602d1cbc94527eb56259ba8035537072810c438f
Reviewed-on: http://review.couchbase.org/68186
Reviewed-by: Aliaksey Artamonau <3c875bcfb3adf2a65b2ae7686ca921e6c9433147@gmail.com>
Tested-by: Aliaksey Artamonau <3c875bcfb3adf2a65b2ae7686ca921e6c9433147@gmail.com>

ceejatec/ns_server,membase/ns_server,membase/ns_server,ceejatec/ns_server,ceejatec/ns_server,membase/ns_server,ceejatec/ns_server,membase/ns_server,membase/ns_server,membase/ns_server,ceejatec/ns_server,ceejatec/ns_server