mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-04 00:44:48 +00:00
perf: 优化用户 access key 的使用和创建 (#11776)
* perf: 优化用户 access key 的使用和创建 * perf: 优化 access key api --------- Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
@@ -15,3 +15,14 @@ class ConfirmPassword(BaseConfirm):
|
||||
ok = authenticate(self.request, username=self.user.username, password=secret_key)
|
||||
msg = '' if ok else _('Authentication failed password incorrect')
|
||||
return ok, msg
|
||||
|
||||
@property
|
||||
def content(self):
|
||||
return [
|
||||
{
|
||||
'name': 'password',
|
||||
'display_name': _('Password'),
|
||||
'disabled': False,
|
||||
'placeholder': _('Password'),
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user