[Update] 系统用户新增清除认证的操作

This commit is contained in:
ibuler
2018-05-17 11:39:04 +08:00
parent e66cfc2e13
commit 4b7af1457d
6 changed files with 67 additions and 29 deletions

View File

@@ -107,6 +107,7 @@ class AssetUser(models.Model):
def clear_auth(self):
self._password = ''
self._private_key = ''
self._public_key = ''
self.save()
def auto_gen_auth(self):