!


On 1 March 2013 13:09, Pawel Kozlowski <notifications@github.com> wrote:

> In client/src/common/authentication/login/LoginFormController.js:
>
> > +      localizedMessages.get('login.reason.notAuthenticated');
> > +  }
> > +
> > +  // Attempt to authenticate the user specified in the form's model
> > +  $scope.login = function() {
> > +    // Clear any previous authentication errors
> > +    $scope.authError = null;
> > +
> > +    // Try to login
> > +    authentication.login($scope.user.email, $scope.user.password).then(function(loggedIn) {
> > +      if ( !loggedIn ) {
> > +        // If we get here then the login failed due to bad credentials
> > +        $scope.authError = localizedMessages.get('login.error.invalidCredentials');
> > +      }
> > +    }, function(x) {
> > +      console.log(x);
>
> console.log? I thought that jshint would fail on this
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/angular-app/angular-app/pull/116/files#r3203915>
> .
>