diff options
author | Andrew Dolgov <[email protected]> | 2012-09-10 19:18:44 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-09-10 19:18:44 +0400 |
commit | 2d6847495f204c6b50d378843ccff899d0fbe46c (patch) | |
tree | 4fc1ea45f9b5c09f175b61bbf8375164e36777df /classes | |
parent | d493aba2386931d8baf76e218e35a77b8c85b618 (diff) |
fix OTP
Diffstat (limited to 'classes')
-rw-r--r-- | classes/auth/internal.php | 6 | ||||
-rw-r--r-- | classes/handler/public.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/classes/auth/internal.php b/classes/auth/internal.php index 8993116c6..37014ce47 100644 --- a/classes/auth/internal.php +++ b/classes/auth/internal.php @@ -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) ?>"> diff --git a/classes/handler/public.php b/classes/handler/public.php index 4d6c117eb..998e078dd 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -480,8 +480,6 @@ class Handler_Public extends Handler { function login() { - print_r($_REQUEST); - $_SESSION["prefs_cache"] = array(); if (!SINGLE_USER_MODE) { |