Password Protection

Textpattern Passwords

Not sure I’m fully understanding this, but here’s one thread on the discussion forum

There is another thread with the password tag, which looks something like this:

<txp:password_protect login="one" pass="two" />.

Meanwhile, the extension looks like this:

More detailed help will be forthcoming. Basic usage: ign_password_protect features two three tags currently:

Use to password protect part or all of a txp website against users in the txp_user database (on the site_admin tab). can be used in page or form templates, or even directly within an article.

Accepted parameters: privs: comma separated list of privilege levels to compare against. If omitted, plugin simply checks for account existence (including privs = None). err_msg: sets error message on bad logins login_msg: sets the greeting message that is displayed above the form class: sets the class assigned to the div containing the form Default value is ign_login remember: boolean to display checkbox for “remember me” Set to 1 or true to display check box (and set persistent cookie) set to 0 or false to disallow. Default is off. login_type: option to control how login is requested. Set to “page” to use browser’s authentication dialog. Omit or set to anything else to use inline form element. Default is inline. h3. Displays logged in user name with link to log out if logged in. h4. Accepted parameters: logged_msg: replaces default “not logged in” message. h3. Displays login form independent of protected area. h4. Accepted parameters: show_logged: boolean to display “logged-in as” message w/ logout link when user is logged in Set to 1 or true to show, 0 or false to hide. Default is on. logged_msg: sets the message displayed when not logged in login_msg: sets the greeting message that is displayed above the form remember: boolean to display checkbox for “remember me” Set to 1 or true to display check box (and set persistent cookie) set to 0 or false to disallow. Default is off. h3. Displays list of currently logged on users. h4. Accepted parameters: privs: accepts comma-delimited list to constrain list to users of specific privilege levels. If omitted, all users are listed. display: options are ‘name’ or ‘realname’; ‘name’ will display the login name, ‘realname’ will display the real name as entered. Defaults to ‘name’ also accepts wraptag, break, and class (self-explanatory)


Categories