extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
30 lines (23 loc) • 711 B
JavaScript
Ext.define('Admin.view.authentication.AuthenticationController', {
extend: 'Ext.app.ViewController',
alias: 'controller.authentication',
//TODO: implement central Facebook OATH handling here
onFaceBookLogin : function() {
this.redirectTo('dashboard', true);
},
onLoginButton: function() {
this.redirectTo('dashboard', true);
},
onLoginAsButton: function() {
this.redirectTo('login', true);
},
onNewAccount: function() {
this.redirectTo('register', true);
},
onSignupClick: function() {
this.redirectTo('dashboard', true);
},
onResetClick: function() {
this.redirectTo('dashboard', true);
}
});