diff --git a/client/app/account/login/login.controller.js b/client/app/account/login/login.controller.js index b1f8d688..145707d7 100644 --- a/client/app/account/login/login.controller.js +++ b/client/app/account/login/login.controller.js @@ -1,10 +1,13 @@ 'use strict'; angular.module('observatory3App') - .controller('LoginController', function ($scope, Auth, $location) { + .controller('LoginController', function ($scope, Auth, $location, focus) { $scope.user = {}; $scope.errors = {}; + + focus('email'); + $scope.login = function(form) { $scope.submitted = true; diff --git a/client/app/account/login/login.html b/client/app/account/login/login.html index 5e5f4426..0c9e2213 100644 --- a/client/app/account/login/login.html +++ b/client/app/account/login/login.html @@ -1,48 +1,68 @@
- A name is required -
-+ A name is required +
+- Doesn't look like a valid email. -
-- What's your email address? -
-- {{ errors.email }} -
-+ Doesn't look like a valid email. +
++ What's your email address? +
++ {{ errors.email }} +
+- What's your github username? -
-- {{ errors.github }} -
-+ What's your github username? +
++ {{ errors.github }} +
+- Password must be at least 3 characters. -
-- {{ errors.password }} -
-+ Password must be at least 3 characters. +
++ {{ errors.password }} +
+- Password must be at least 3 characters. -
-- Passwords must match -
+ ++ Password must be at least 3 characters. +
++ Passwords must match +
-