Swapped custom auth for component.
This commit is contained in:
parent
8dbd01c7b1
commit
8e37bce7c7
8 changed files with 33 additions and 82 deletions
|
@ -2,13 +2,5 @@ import Ember from 'ember';
|
|||
import LoginControllerMixin from 'simple-auth/mixins/login-controller-mixin';
|
||||
|
||||
export default Ember.Controller.extend(LoginControllerMixin, {
|
||||
authenticator: 'authenticators:custom',
|
||||
actions: {
|
||||
authenticate: function() {
|
||||
var _this = this;
|
||||
this._super().then(null, function(message) {
|
||||
_this.set('errorMessage', message);
|
||||
});
|
||||
}
|
||||
}
|
||||
authenticator: 'simple-auth-authenticator:jwt'
|
||||
});
|
||||
|
|
Reference in a new issue