title: Can't send password via type="password"
body: <p>I can't figure out what is wrong with my code, my problem is I can't send a post request if I use an input type="password". Here's my html code:</p>
  
  <pre><code>&lt;form class="form-horizontal" ng-submit="login()"&gt;
  &lt;div class="control-group"&gt;
      &lt;label class="control-label" for="inputEmail"&gt;Email&lt;/label&gt;
      &lt;div class="controls"&gt;
          &lt;input type="text" id="inputEmail" placeholder="Email" ng-model="email" required&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="control-group"&gt;
      &lt;label class="control-label" for="inputPassword"&gt;Password&lt;/label&gt;
      &lt;div class="controls"&gt;
          &lt;input type="password" id="inputPassword" placeholder="Password" ng-model="password" required&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="control-group"&gt;
      &lt;div class="controls"&gt;
          &lt;button type="submit" class="btn"&gt;Sign in&lt;/button&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>   </p>
  
  <p>and my Angular controller:</p>
  
  <pre><code>angular.module('myApp')
  .controller('loginController',function($scope,$sanitize,$location,Authenticate){
      $scope.login = function(){
          Authenticate.save({
              'email': $sanitize($scope.email),
              'password': $sanitize($scope.password)
          },function() {
              $scope.flash = ''
              $location.path('/pos');
          },function(response){
              $scope.flash = response.data.flash
          })
      }
   })
  </code></pre>
  
  <p>My server-side php (Laravel):</p>
  
  <pre><code>public function store()
  {
      $credentials = array(
          'email' =&gt;  Input::get('email'),
          'password' =&gt;  Input::get('password'));
  
      return Response::json(  $credentials );
  }
  </code></pre>
  
  <p>My post request on Firefox:</p>
  
  <pre><code>{"email":"admin@gmail.com","password":""}
  </code></pre>
  
  <p>and on Chrome:</p>
  
  <pre><code>  email: ""
  password: ""
  </code></pre>
  
  <p>but if I remove <code>type="password"</code> it can pass the correct data on firefox :/ Is there something wrong on my html/JavaScript? My problem here is on posting/sending data.</p>