]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix OTP
authorAndrew Dolgov <fox@fakecake.org>
Mon, 10 Sep 2012 15:18:44 +0000 (19:18 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Mon, 10 Sep 2012 15:18:44 +0000 (19:18 +0400)
classes/auth/internal.php
classes/handler/public.php

index 8993116c6b8b292326198258e7fd36789f84add6..37014ce47846e5c6e6f30308c92987c63b9443b6 100644 (file)
@@ -32,11 +32,13 @@ class Auth_Internal extends Auth_Base {
                                                                return false;
                                                        }
                                                } else {
+                                                       $return = urlencode($_REQUEST["return"]);
                                                        ?><html>
                                                                <head><title>Tiny Tiny RSS</title></head>
                                                        <body>
-                                                       <form method="POST">
-                                                               <input type="hidden" name="login_action" value="do_login">
+                                                       <form action="public.php?return=<?php echo $return ?>"
+                                                                       method="POST">
+                                                               <input type="hidden" name="op" value="login">
                                                                <input type="hidden" name="login" value="<?php echo htmlspecialchars($login) ?>">
                                                                <input type="hidden" name="password" value="<?php echo htmlspecialchars($password) ?>">
 
index 4d6c117eb5b5931e6da6dd740fcd1f3e89a594e8..998e078dd27df24192c7c652dea297f92bca73be 100644 (file)
@@ -480,8 +480,6 @@ class Handler_Public extends Handler {
 
        function login() {
 
-               print_r($_REQUEST);
-
                $_SESSION["prefs_cache"] = array();
 
                if (!SINGLE_USER_MODE) {