[Update] 服务器可以生成用户密钥

This commit is contained in:
ibuler
2018-03-21 15:22:10 +08:00
parent 6f29cf5ddd
commit 759760e7d9
10 changed files with 188 additions and 104 deletions

View File

@@ -115,7 +115,7 @@ class User(AbstractUser):
import sshpubkeys
try:
return sshpubkeys.SSHKey(self.public_key)
except TabError:
except (TabError, TypeError):
pass
return PubKey()