Reuse constant string value instead of using manifest string.

Use proper form id.
This commit is contained in:
Jocelyn Fiat
2017-10-17 13:43:41 +02:00
parent 40855d73d3
commit 72c35fd0f7
2 changed files with 5 additions and 5 deletions

View File

@@ -82,7 +82,7 @@ feature -- Process Edit
fd: detachable WSF_FORM_DATA fd: detachable WSF_FORM_DATA
do do
create b.make_empty create b.make_empty
f := new_edit_form (a_role, request_url (Void), "edit-user") f := new_edit_form (a_role, request_url (Void), "edit-user-role")
api.hooks.invoke_form_alter (f, fd, Current) api.hooks.invoke_form_alter (f, fd, Current)
if request.is_post_request_method then if request.is_post_request_method then
f.validation_actions.extend (agent edit_form_validate(?,a_role, b)) f.validation_actions.extend (agent edit_form_validate(?,a_role, b))
@@ -111,7 +111,7 @@ feature -- Process Delete
fd: detachable WSF_FORM_DATA fd: detachable WSF_FORM_DATA
do do
create b.make_empty create b.make_empty
f := new_delete_form (a_role, request_url (Void), "edit-user") f := new_delete_form (a_role, request_url (Void), "delete-user-role")
api.hooks.invoke_form_alter (f, fd, Current) api.hooks.invoke_form_alter (f, fd, Current)
if request.is_post_request_method then if request.is_post_request_method then
f.process (Current) f.process (Current)

View File

@@ -63,7 +63,7 @@ feature -- Access
-- List of permission ids, used by this module, and declared. -- List of permission ids, used by this module, and declared.
do do
Result := Precursor Result := Precursor
Result.force ("use basic_auth") Result.force (perm_use_basic_auth)
end end
perm_use_basic_auth: STRING = "use basic_auth" perm_use_basic_auth: STRING = "use basic_auth"