mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
webui: support unlock user command
Call user-unlock command from Web UI. It will unlock displayed user on current master. https://fedorahosted.org/freeipa/ticket/4407 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
parent
029649c05c
commit
35d3f03843
@ -269,13 +269,21 @@ return {
|
||||
'disable',
|
||||
'delete',
|
||||
'reset_password',
|
||||
{
|
||||
$factory: IPA.object_action,
|
||||
name: 'unlock',
|
||||
method: 'unlock',
|
||||
label: '@i18n:objects.user.unlock',
|
||||
needs_confirm: true,
|
||||
confirm_msg: '@i18n:objects.user.unlock_confirm'
|
||||
},
|
||||
{
|
||||
$type: 'automember_rebuild',
|
||||
name: 'automember_rebuild',
|
||||
label: '@i18n:actions.automember_rebuild'
|
||||
}
|
||||
],
|
||||
header_actions: ['reset_password', 'enable', 'disable', 'delete', 'automember_rebuild'],
|
||||
header_actions: ['reset_password', 'enable', 'disable', 'delete', 'unlock', 'automember_rebuild'],
|
||||
state: {
|
||||
evaluators: [
|
||||
{
|
||||
|
@ -500,7 +500,9 @@
|
||||
"mailing": "Mailing Address",
|
||||
"misc": "Misc. Information",
|
||||
"status_confirmation": "Are you sure you want to ${action} the user?<br/>The change will take effect immediately.",
|
||||
"status_link": "Click to ${action}"
|
||||
"status_link": "Click to ${action}",
|
||||
"unlock": "Unlock",
|
||||
"unlock_confirm": "Are you sure you want to unlock user ${object}?"
|
||||
}
|
||||
},
|
||||
"password": {
|
||||
|
@ -646,6 +646,8 @@ class i18n_messages(Command):
|
||||
"misc": _("Misc. Information"),
|
||||
"status_confirmation": _("Are you sure you want to ${action} the user?<br/>The change will take effect immediately."),
|
||||
"status_link": _("Click to ${action}"),
|
||||
"unlock": _("Unlock"),
|
||||
"unlock_confirm": _("Are you sure you want to unlock user ${object}?"),
|
||||
},
|
||||
},
|
||||
"password": {
|
||||
|
@ -156,6 +156,8 @@ class test_user(UI_driver):
|
||||
self.reset_password_action(pwd)
|
||||
self.assert_text_field('has_password', '******')
|
||||
|
||||
self.action_list_action('unlock')
|
||||
|
||||
# delete
|
||||
self.delete_action(user.ENTITY, user.PKEY)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user