# HG changeset patch # User Ludovic Chabant # Date 1696798170 25200 # Node ID b87217b90048ba8397084a077351379358b7341e # Parent 53d6c58a98e0e7d955f15b09df7c1c1b9a736133 Cache Bluesky email before asking for password. It makes it easier to re-authenticate if the user entered the wrong password. diff -r 53d6c58a98e0 -r b87217b90048 silorider/silos/bluesky.py --- a/silorider/silos/bluesky.py Sun Oct 08 13:48:48 2023 -0700 +++ b/silorider/silos/bluesky.py Sun Oct 08 13:49:30 2023 -0700 @@ -66,11 +66,12 @@ logger.info("Authenticating client app with Bluesky for %s" % self.ctx.silo_name) email = input("Email: ") + self.setCacheItem('email', email) + password = getpass.getpass(prompt="Application password: ") profile = self.client.login(email, password) - logger.info("Authenticated as %s" % profile.displayName) - self.setCacheItem('email', email) + logger.info("Authenticated as %s" % profile.display_name) self.setCacheItem('password', password) def onPostStart(self, ctx):