mirror of https://github.com/jumpserver/jumpserver
fix: 修复用户公钥错误引起的profile bug
parent
68ccaf0cb3
commit
999286a089
|
@ -89,7 +89,10 @@ class AuthMixin:
|
|||
def get_public_key_hash_md5(self):
|
||||
if not callable(self.public_key_obj.hash_md5):
|
||||
return ''
|
||||
return self.public_key_obj.hash_md5()
|
||||
try:
|
||||
return self.public_key_obj.hash_md5()
|
||||
except:
|
||||
return ''
|
||||
|
||||
def reset_password(self, new_password):
|
||||
self.set_password(new_password)
|
||||
|
|
Loading…
Reference in New Issue