#3527 [hotfix] Ability to update a user's SSH key.
Closed: Fixed None Opened 7 years ago by codeblock.

We've applied a hotfix that allows users to update their SSH key without having to remove the old one first.

--- a/fas/validators.py
+++ b/fas/validators.py
@@ -181,7 +181,10 @@ class ValidSSHKey(validators.FancyValidator):

 def _to_python(self, value, state):
     # pylint: disable-msg=C0111,W0613
  • if isinstance(value, unicode):
  • return value
    return value.file.read().decode('utf-8')

    def validate_python(self, value, state):
    # pylint: disable-msg=C0111

Login to comment on this ticket.