<div modal="showLoginForm" close="cancelLogin()">
    <div class="modal-header">
        <h4>Sign in</h4>
    </div>
    <div class="modal-body">
        <div class="alert alert-error" ng-show="authError">
            {{authError}}
        </div>
        <form name="form" ng-submit="login()" >
            <label>E-mail</label>
            <input name="login" type="email" ng-model="user.email" required autofocus>
            <label>Password</label>
            <input name="pass" type="password" ng-model="user.password" required>
        </form>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary login" ng-click="login()" ng-disabled='form.$invalid'>Sign in</button>
        <button class="btn clear" ng-click="clearForm()">Clear</button>
        <button class="btn btn-warning cancel" ng-click="cancelLogin()">Cancel</button>
    </div>
</div>

<div modal="showLoginForm" close="cancelLogin()">
    <form name="form">
        <div class="modal-header">
            <h4>Sign in</h4>
        </div>
        <div class="modal-body">
            <div class="alert alert-error" ng-show="authError">
                {{authError}}
            </div>
                <label>E-mail</label>
                <input name="login" type="email" ng-model="user.email" required autofocus>
                <label>Password</label>
                <input name="pass" type="password" ng-model="user.password" required>
        </div>
        <div class="modal-footer">
            <button class="btn btn-primary login" ng-click="login()" ng-disabled='form.$invalid'>Sign in</button>
            <button class="btn clear" ng-click="clearForm()">Clear</button>
            <button class="btn btn-warning cancel" ng-click="cancelLogin()">Cancel</button>
        </div>
    </form>
</div>

Move form element to enable submit on enter.
fix(login): Move form element to enable submit on enter.

The primary default button for the login form was outside the form element.
By moving the form up a level in the DOM the button becomes part of the form and so will submit the form when the user hits enter in one of the input boxes.
Since the form had more than two input boxes, the ng-submit on the form was never being triggered.  Removed now to prevent double submission.
