Bitbucket - password asking logic