Skip to content

Commit fc1fd82

Browse files
committed
refactor(client:login): rename error from 'other' to 'login'
it makes more sense..
1 parent bf78a58 commit fc1fd82

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: templates/app/client/app/account(auth)/login/login(html).html

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1>Login</h1>
2828
Please enter a valid email.
2929
</p>
3030

31-
<p class="help-block">{{ vm.errors.other }}</p>
31+
<p class="help-block">{{ vm.errors.login }}</p>
3232
</div>
3333

3434
<div>

Diff for: templates/app/client/app/account(auth)/login/login(jade).jade

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
.form-group.has-error
2828
p.help-block(ng-show='form.email.$error.required && form.password.$error.required && vm.submitted')
2929
| Please enter your email and password.
30-
p.help-block {{ vm.errors.other }}
30+
p.help-block {{ vm.errors.login }}
3131

3232
div
3333
button.btn.btn-inverse.btn-lg.btn-login(type='submit')

Diff for: templates/app/client/app/account(auth)/login/login.controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class LoginController {
2525
<% if (filters.ngroute) { %>this.$location.path('/');<% } %><% if (filters.uirouter) { %>this.$state.go('main');<% } %>
2626
})
2727
.catch(err => {
28-
this.errors.other = err.message;
28+
this.errors.login = err.message;
2929
});
3030
}
3131
}

0 commit comments

Comments
 (0)