mirror of
https://github.com/flarum/core.git
synced 2025-08-06 00:17:31 +02:00
Hello world!
This commit is contained in:
28
ember/app/routes/application.js
Normal file
28
ember/app/routes/application.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import Ember from 'ember';
|
||||
import ApplicationRouteMixin from 'simple-auth/mixins/application-route-mixin';
|
||||
|
||||
export default Ember.Route.extend(ApplicationRouteMixin, {
|
||||
|
||||
actions: {
|
||||
|
||||
login: function() {
|
||||
return this.render('login', {
|
||||
into: 'application',
|
||||
outlet: 'modal'
|
||||
});
|
||||
},
|
||||
|
||||
doLogin: function() {
|
||||
this.get('session').authenticate('authenticator:custom', {});
|
||||
},
|
||||
|
||||
closeModal: function() {
|
||||
return this.disconnectOutlet({
|
||||
outlet: 'modal',
|
||||
parentView: 'application'
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
Reference in New Issue
Block a user