login.route.js

import Ember from 'ember'; export default Ember.Route.extend({ session: Ember.inject.service(), actions: { authenticate: function () { var credentials = this.getProperties('email', 'password'); this.get('session').authenticate('authenticator:stamplay', credentials) .catch((message) => { this.set('errorMessage', message); }).then(() => { this.sendAction('onSucess'); }); } });
Ember Section

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.