fix formatting in code samples
parent
beeaf0f590
commit
976d61f6af
|
@ -91,6 +91,7 @@ ignored.
|
||||||
>>>> prusue my idea of not doing the captcha validation in the validate
|
>>>> prusue my idea of not doing the captcha validation in the validate
|
||||||
>>>> hook.
|
>>>> hook.
|
||||||
|
|
||||||
|
[[!format diff """
|
||||||
--- a/IkiWiki/Plugin/openid.pm
|
--- a/IkiWiki/Plugin/openid.pm
|
||||||
+++ b/IkiWiki/Plugin/openid.pm
|
+++ b/IkiWiki/Plugin/openid.pm
|
||||||
@@ -18,6 +18,7 @@ sub getopt () {
|
@@ -18,6 +18,7 @@ sub getopt () {
|
||||||
|
@ -129,6 +130,7 @@ ignored.
|
||||||
return_to => IkiWiki::cgiurl(do => "postsignin"),
|
return_to => IkiWiki::cgiurl(do => "postsignin"),
|
||||||
trust_root => $config{cgiurl},
|
trust_root => $config{cgiurl},
|
||||||
|
|
||||||
|
"""]]
|
||||||
|
|
||||||
Instructions
|
Instructions
|
||||||
=====
|
=====
|
||||||
|
@ -136,8 +138,10 @@ Instructions
|
||||||
You need to go to <http://recaptcha.net/api/getkey> and get a key set.
|
You need to go to <http://recaptcha.net/api/getkey> and get a key set.
|
||||||
The keys are added as options.
|
The keys are added as options.
|
||||||
|
|
||||||
reCaptchaPubKey => "LONGPUBLICKEYSTRING",
|
[[!format perl """
|
||||||
reCaptchaPrivKey => "LONGPRIVATEKEYSTRING",
|
reCaptchaPubKey => "LONGPUBLICKEYSTRING",
|
||||||
|
reCaptchaPrivKey => "LONGPRIVATEKEYSTRING",
|
||||||
|
"""]]
|
||||||
|
|
||||||
You can also use "signInSSL" if you're using ssl for your login screen.
|
You can also use "signInSSL" if you're using ssl for your login screen.
|
||||||
|
|
||||||
|
@ -146,6 +150,7 @@ The following code is just inline. It will probably not display correctly, and
|
||||||
|
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
[[!format perl """
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
# Ikiwiki password authentication.
|
# Ikiwiki password authentication.
|
||||||
package IkiWiki::Plugin::recaptcha;
|
package IkiWiki::Plugin::recaptcha;
|
||||||
|
@ -327,3 +332,4 @@ sub check_answer {
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
"""]]
|
||||||
|
|
Loading…
Reference in New Issue