kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2011-08-22 06:45 pm

[dw-free] remove secret question

[commit: http://hg.dwscoalition.org/dw-free/rev/c645c0d26223]

http://bugs.dwscoalition.org/show_bug.cgi?id=2950

Remove unused display code related to secret question support, which was
already taken out in a previous cleanup effort.

Patch by [staff profile] denise.

Files modified:
  • htdocs/lostinfo.bml
--------------------------------------------------------------------------------
diff -r 7bb0c50bf4b9 -r c645c0d26223 htdocs/lostinfo.bml
--- a/htdocs/lostinfo.bml	Mon Aug 22 12:59:50 2011 -0500
+++ b/htdocs/lostinfo.bml	Mon Aug 22 13:44:36 2011 -0500
@@ -35,7 +35,7 @@
     # no post action, just show query form
     unless (LJ::did_post()) {
         my $ret;
-        
+
         $ret .=  "<?h1 $ML{'captcha.title'} h1?>\n"
             if $captcha->enabled;
 
@@ -171,17 +171,8 @@
             'body' => $body,
         }) or die "Error: couldn't send email";
 
-        my $add_message = '';
-
-        if ( LJ::is_enabled('secret_question') ) {
-            my ($redir, $ml_key, $param) = LJ::Hooks::run_hook('use_secret', $u);
-            return BML::redirect($redir) if $redir ne '';
-
-            $add_message = "<?p " . BML::ml($ml_key, { datetime => strftime("%d.%m.%Y %H:%M", gmtime($param)) } ) . " p?>" if $ml_key ne '';
-        }
-
         return "<?h1 $ML{'/lostinfo_do.bml.password_mailed.title'} h1?>\n" .
-               "<?p $ML{'/lostinfo_do.bml.password_mailed.text'} p?>" . $add_message;
+               "<?p $ML{'/lostinfo_do.bml.password_mailed.text'} p?>";
     }
 
     if ($POST{'lostuser'}) {
@@ -228,7 +219,7 @@
             'subject' => "Lost Username",
             'body' => $body,
         }) or die "Error: couldn't send email";
-    
+
         return "<?h1 $ML{'/lostinfo_do.bml.username_mailed.title'} h1?>\n" .
                "<?p $ML{'/lostinfo_do.bml.username_mailed.text'} p?>";
     }
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org