]> sipb.mit.edu Git - ikiwiki.git/commitdiff
* Group passwordauth fields with a fieldset as well. Add a new
authorjoshtriplett <joshtriplett@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 30 Apr 2007 02:26:50 +0000 (02:26 +0000)
committerjoshtriplett <joshtriplett@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 30 Apr 2007 02:26:50 +0000 (02:26 +0000)
  passwordauth page to the basewiki describing password
  authentication; like openid, it uses conditional to check which
  forms of authentication the wiki allows.  Add conditional cross-
  links between the openid and passwordauth pages, to help the user
  understand how they can log in.

IkiWiki/Plugin/passwordauth.pm
basewiki/passwordauth.mdwn [new symlink]
debian/changelog
doc/openid.mdwn
doc/passwordauth.mdwn [new file with mode: 0644]
po/ikiwiki.pot

index d1a965dc889c144f62a01bcba826ae192ec37b10..dac649bc86c81f38a8e6ae1386c880449524bb15 100644 (file)
@@ -21,8 +21,12 @@ sub formbuilder_setup (@) { #{{{
        my $cgi=$params{cgi};
 
        if ($form->title eq "signin" || $form->title eq "register") {
        my $cgi=$params{cgi};
 
        if ($form->title eq "signin" || $form->title eq "register") {
-               $form->field(name => "name", required => 0, size => 50);
-               $form->field(name => "password", type => "password", required => 0);
+               my %fieldset = ();
+               if ($form->title eq "signin") {
+                       $fieldset{"fieldset"} = gettext("Log in with")." ".htmllink("", "", "passwordauth", noimageinline => 1);
+               }
+               $form->field(name => "name", required => 0, size => 50, %fieldset);
+               $form->field(name => "password", type => "password", required => 0, %fieldset);
                
                if ($form->submitted eq "Register" || $form->submitted eq "Create Account") {
                        $form->field(name => "confirm_password", type => "password");
                
                if ($form->submitted eq "Register" || $form->submitted eq "Create Account") {
                        $form->field(name => "confirm_password", type => "password");
diff --git a/basewiki/passwordauth.mdwn b/basewiki/passwordauth.mdwn
new file mode 120000 (symlink)
index 0000000..d4a1101
--- /dev/null
@@ -0,0 +1 @@
+../doc/passwordauth.mdwn
\ No newline at end of file
index aa7e086e6a638420720dff0b961fa074f2b6acc1..4b3ac01cdb4953ec0c6f79ca3a5d4357e93bbd3a 100644 (file)
@@ -15,8 +15,14 @@ ikiwiki (2.00) UNRELEASED; urgency=low
   [ Josh Triplett ]
   * fieldset support appeared in CGI::FormBuilder 3.05, so increase
     version in Depends on libcgi-formbuilder-perl to 3.05
   [ Josh Triplett ]
   * fieldset support appeared in CGI::FormBuilder 3.05, so increase
     version in Depends on libcgi-formbuilder-perl to 3.05
-
- -- Josh Triplett <josh@freedesktop.org>  Sun, 29 Apr 2007 19:52:16 -0700
+  * Group passwordauth fields with a fieldset as well.  Add a new
+    passwordauth page to the basewiki describing password
+    authentication; like openid, it uses conditional to check which
+    forms of authentication the wiki allows.  Add conditional cross-
+    links between the openid and passwordauth pages, to help the user
+    understand how they can log in.
+
+ -- Josh Triplett <josh@freedesktop.org>  Sun, 29 Apr 2007 19:58:24 -0700
 
 ikiwiki (1.51) unstable; urgency=low
 
 
 ikiwiki (1.51) unstable; urgency=low
 
index a8ce46f08488d66a93ace7a6303dbc3a94180c05..7e46bdf6423ed69e16abb847aca884884404c2fe 100644 (file)
@@ -2,7 +2,11 @@
 
 [[if test="enabled(openid)"
      then="This wiki has OpenID **enabled**."
 
 [[if test="enabled(openid)"
      then="This wiki has OpenID **enabled**."
-     else="This wiki has OpenID **disabled**."]]
+     else="""
+This wiki has OpenID **disabled**.
+[[if test="enabled(passwordauth) and passwordauth"
+     then="You can sign into this wiki using [[passwordauth]]."]]
+"""]]
 
 [OpenID](http://openid.net) is a decentralized authentication mechanism
 that allows you to have one login that you can use on a growing number of
 
 [OpenID](http://openid.net) is a decentralized authentication mechanism
 that allows you to have one login that you can use on a growing number of
@@ -23,6 +27,9 @@ signin form. You do not need to give this wiki a password or go through any
 registration process when using OpenID.
 """]]
 
 registration process when using OpenID.
 """]]
 
+[[if test="enabled(openid) and enabled(passwordauth) and passwordauth"
+     then="You can also sign into this wiki using [[passwordauth]]."]]
+
 ---
 
 It's also possible to make a page in the wiki usable as an OpenID url,
 ---
 
 It's also possible to make a page in the wiki usable as an OpenID url,
diff --git a/doc/passwordauth.mdwn b/doc/passwordauth.mdwn
new file mode 100644 (file)
index 0000000..1c13582
--- /dev/null
@@ -0,0 +1,22 @@
+[[meta title="Password Authentication"]]
+
+[[if test="enabled(passwordauth)"
+     then="""
+This wiki has passwordauth **enabled**.
+
+You can sign into this wiki by entering a username and password in the login
+form.  If you don't have an account, you can register for one from the login
+form by hitting the "Register" button.
+
+[[if test="enabled(openid) and openid"
+     then="You can also sign into this wiki using [[OpenID]]."]]
+"""
+else="""
+This wiki has passwordauth **disabled**.
+[[if test="enabled(openid) and openid"
+     then="You can sign into this wiki using [[OpenID]]."]]
+
+If this wiki had passwordauth enabled, you could sign into this wiki by
+entering the username and password for your account, or create an account from
+the login form by hitting the "Register" button.
+"""]]
index 6e46237658c59f38aaf6fe3a644ca74544123b38..2182a818602e28e9a53a9fb556a08cec7233ff6e 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-04-29 19:27-0400\n"
+"POT-Creation-Date: 2007-04-29 19:26-0700\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -228,7 +228,7 @@ msgstr ""
 msgid "more"
 msgstr ""
 
 msgid "more"
 msgstr ""
 
-#: ../IkiWiki/Plugin/openid.pm:34
+#: ../IkiWiki/Plugin/openid.pm:34 ../IkiWiki/Plugin/passwordauth.pm:26
 msgid "Log in with"
 msgstr ""
 
 msgid "Log in with"
 msgstr ""
 
@@ -240,19 +240,19 @@ msgstr ""
 msgid "All pages are linked to by other pages."
 msgstr ""
 
 msgid "All pages are linked to by other pages."
 msgstr ""
 
-#: ../IkiWiki/Plugin/passwordauth.pm:147
+#: ../IkiWiki/Plugin/passwordauth.pm:151
 msgid "Account creation successful. Now you can Login."
 msgstr ""
 
 msgid "Account creation successful. Now you can Login."
 msgstr ""
 
-#: ../IkiWiki/Plugin/passwordauth.pm:150
+#: ../IkiWiki/Plugin/passwordauth.pm:154
 msgid "Error creating account."
 msgstr ""
 
 msgid "Error creating account."
 msgstr ""
 
-#: ../IkiWiki/Plugin/passwordauth.pm:171
+#: ../IkiWiki/Plugin/passwordauth.pm:175
 msgid "Failed to send mail"
 msgstr ""
 
 msgid "Failed to send mail"
 msgstr ""
 
-#: ../IkiWiki/Plugin/passwordauth.pm:173
+#: ../IkiWiki/Plugin/passwordauth.pm:177
 msgid "Your password has been emailed to you."
 msgstr ""
 
 msgid "Your password has been emailed to you."
 msgstr ""