Active
Project:
Lost & found issues
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2007 at 04:10 UTC
Updated:
17 Jul 2008 at 00:40 UTC
Jump to comment: Most recent
I would like to password protect a page or pages so a nos registered user can enter the password and see the page.
Comments
Comment #1
maulwuff commentedThis is what I am looking for, too. Would it be hard to add this feature?
Comment #2
maulwuff commentedI've managed to enhance the widgets functionality, by adding some modified parts of the protected-node-module.
what the code does:
ask for password (only) before editing a node. (If you want to always have a password-question, use the protected node-module.)
this works for authenticated and anonymous users!
This way, anon users can register i.e. for an event, and edit their entry later without having to register to the site.
editing is available for users who know the password or for user nr 1.
how it works:
-it leaves the original password.module code as it is. simply put the following at the end of this file.
-If a user wants to edit a node, and no session saved password is found for the node, the user will be shown a password-form (like in protected node-module)
-it does not build its own password-table like protected node does, because the password is stored by cck.
caution:
- you have to enable 'edit password content' in user access control.
- the password field has to have the name "editpassword" (when adding a new field to a content type)!! this is a point I don't know how to solve securely in a dynamic way. :/
- you can not edit from the Administer > Content management > content, because of wrong url.
- do not use this code for high security sites! parameters for the right node are shoved around in the url.
- the field can only be used in one content-type, otherwise, a new table is generated, which this patch is not able to handle.
Comment #3
designanddraft commenteddrupal 6.x, v6 transparent admin
I am looking for transparent administration, open, visible and sometimes editable admin settings with security. based on permissions, locked individually (as a node?), password protected, view and/or edit choice for admin inserted at the top or bottom of all admin/settings pages. even better, password or radio button next to every settings choice as viewable and/or editable similar to form field protect. a prominent notification to the user, “you can view this page of administration settings, if they require edit, please email administration with your request link”. Possibly even attached comment or site note section, ability to insert instruction or voting widget.
I gather this is the approach taken by adding access control to the core and maybe it is similar to drupal core building. I have been looking at everything I can find and I’m not a programmer yet, so I need to pass what I’ve found on to someone else here. If someone can put these pieces together or have experience with something similar with any version 4,5,6,7. i'm listing this at all of these locations aswell. Rsvp, elisa
http://drupal.org/node/109157 access control
http://drupal.org/node/131101#comment-735943 Add disabled attribute to protected fields
http://drupal.org/node/245900 How to Protect Nodes From Editing on Demand
http://drupal.org/node/31143#comment-796152 Node Privacy by Role not working
http://drupal.org/project/nodeaccess nodeaccess
http://drupal.org/node/126129#comment-703933 password protect a page
http://drupal.org/node/222263#comment-902378 Port of Content access for D6
http://drupal.org/node/29991#comment-51352 Protected content
http://drupal.org/node/13266 Show block to certain users or roles only- Drupal 4.6
http://drupal.org/project/simple_access simple access
http://drupal.org/node/118404#comment-735895 View, but not edit, field at node/xxx/edit