use tab instead of space
authorStricted <info@stricted.de>
Sat, 8 Aug 2015 06:56:17 +0000 (08:56 +0200)
committerStricted <info@stricted.de>
Sat, 8 Aug 2015 06:56:17 +0000 (08:56 +0200)
Speedportw724v.class.php

index 586e8cd9abdb2414d561ea45c1a5a4eb4b8f328a..2f7a37aaaf4d782565051d5c4087274b8c075c89 100644 (file)
@@ -7,22 +7,22 @@ require_once('SpeedportHybrid.class.php');
  * @copyright   2015 Jan Altensen (Stricted)
  */
 class Speedportw724v extends SpeedportHybrid {
-    public function login ($password) {
-        /* this is experimental, i dont have a speedport w724v so i cant test this
-         * feel free to test it and report if it dosent work
-         */
-        $path = 'data/Login.json';
-        $this->hash = md5($password);
-        $fields = array('password' => $this->hash, 'password_shadowed' => $this->hash, 'showpw' => 0);
-        $data = $this->sentRequest($path, $fields);
-        $json = $this->getValues($data['body']);
-        
-        if (isset($json['login']) && $json['login'] == 'success') {
-            $this->cookie = $data['header']['Set-Cookie'];
-            
-            return true;
-        }
-        
-        return false;
-    }
+       public function login ($password) {
+               /* this is experimental, i dont have a speedport w724v so i cant test this
+                * feel free to test it and report if it dosent work
+                */
+               $path = 'data/Login.json';
+               $this->hash = md5($password);
+               $fields = array('password' => $this->hash, 'password_shadowed' => $this->hash, 'showpw' => 0);
+               $data = $this->sentRequest($path, $fields);
+               $json = $this->getValues($data['body']);
+               
+               if (isset($json['login']) && $json['login'] == 'success') {
+                       $this->cookie = $data['header']['Set-Cookie'];
+                       
+                       return true;
+               }
+               
+               return false;
+       }
 }