This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/pods/users/requestlockouthelp/controller.js
2015-07-16 18:47:12 -08:00

19 lines
512 B
JavaScript

import Ember from 'ember';
import ajaxRequest from '../../../utils/ajax-request';
export default Ember.Controller.extend({
actions: {
save: function() {
let url = `${this.get('globals.apiURL')}/api/${this.get('globals.genus')}/users/lockout`;
let options = {
method: 'POST',
data: { email: this.get('email') },
};
ajaxRequest(url, options);
this.transitionTo('login');
this.get('flashMessages').information('Please check your email');
},
},
});