diff --git a/core/templates/login.php b/core/templates/login.php index 2c9b766aa4d..bedff4453b0 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -12,7 +12,6 @@

/> -

diff --git a/lib/base.php b/lib/base.php index 5a2decc6f63..b89859ab2dd 100644 --- a/lib/base.php +++ b/lib/base.php @@ -528,11 +528,7 @@ class OC{ } protected static function tryFormLogin() { - if(!isset($_POST["user"]) - || !isset($_POST['password']) - || !isset($_SESSION['sectoken']) - || !isset($_POST['sectoken']) - || ($_SESSION['sectoken']!=$_POST['sectoken']) ) { + if(!isset($_POST["user"]) || !isset($_POST['password'])) { return false; } diff --git a/lib/util.php b/lib/util.php index 15e6f2824e5..29ab2c34e96 100755 --- a/lib/util.php +++ b/lib/util.php @@ -314,9 +314,6 @@ class OC_Util { $parameters["username"] = ''; $parameters['user_autofocus'] = true; } - $sectoken=rand(1000000,9999999); - $_SESSION['sectoken']=$sectoken; - $parameters["sectoken"] = $sectoken; if (isset($_REQUEST['redirect_url'])) { $redirect_url = OC_Util::sanitizeHTML($_REQUEST['redirect_url']); } else {