Merge pull request #1905 from bboozzoo/bboozzoo/drop-user-key-fingerprint
console_conf: do not attempt to obtain user's public key fingerprints
This commit is contained in:
commit
61af71f64d
|
@ -156,9 +156,6 @@ class IdentityController(TuiController):
|
|||
device_owner = get_device_owner()
|
||||
if device_owner:
|
||||
self.model.add_user(device_owner)
|
||||
key_file = os.path.join(device_owner["homedir"], ".ssh/authorized_keys")
|
||||
cp = run_command(["ssh-keygen", "-lf", key_file])
|
||||
self.model.user.fingerprints = cp.stdout.replace("\r", "").splitlines()
|
||||
return self.make_login_view()
|
||||
else:
|
||||
return IdentityView(self.model, self)
|
||||
|
|
|
@ -25,7 +25,6 @@ class User(object):
|
|||
realname = attr.ib()
|
||||
username = attr.ib()
|
||||
homedir = attr.ib(default=None)
|
||||
fingerprints = attr.ib(init=False, default=[])
|
||||
|
||||
|
||||
class IdentityModel(object):
|
||||
|
|
Loading…
Reference in New Issue