updates code formart for login controller
import Ember from 'ember';
-const {
- Controller,
- computed,
- get,
- setProperties,
- inject: { service }
-} = Ember;
+const { Controller, computed, get, setProperties, inject: { service } } = Ember;
export default Controller.extend({
session: service(),
@@ -22,15 +16,11 @@ export default Controller.extend({
* Using the session service, authenticate using the custom ldap authenticator
*/
authenticateUser() {
- const { username, password } = this.getProperties([
- 'username',
- 'password'
- ]);
+ const { username, password } = this.getProperties(['username', 'password']);
get(this, 'session')
.authenticate('authenticator:custom-ldap', username, password)
- .catch(({ responseText = 'Bad Credentials' }) =>
- setProperties(this, { errorMessage: responseText }));
+ .catch(({ responseText = 'Bad Credentials' }) => setProperties(this, { errorMessage: responseText }));
}
}
});
