front/login: add view

This commit is contained in:
rr-
2016-03-28 00:19:44 +02:00
parent 06ede91d31
commit 8b5ebebd01
11 changed files with 166 additions and 20 deletions

View File

@ -1,8 +1,9 @@
'use strict';
class AuthController {
constructor(topNavigationController) {
constructor(topNavigationController, loginView) {
this.topNavigationController = topNavigationController;
this.loginView = loginView;
this.currentUser = null;
}
@ -24,6 +25,11 @@ class AuthController {
loginRoute() {
this.topNavigationController.activate('login');
this.loginView.render({
login: (user, password) => {
alert(user, password);
//self.authController.login(user);
}});
}
logoutRoute() {