diff --git a/home.html b/home.html index 9f63cd8..2b6b2cc 100644 --- a/home.html +++ b/home.html @@ -39,12 +39,12 @@ -
  • {{currentSection.id?currentSection.short_name:"Classes"}}{{currentSection.id?currentSection.short_name:"Classes"}}
  • Study
  • Logout
  • diff --git a/scripts/RequestResetController.js b/scripts/RequestResetController.js index 3cc79ab..892cefc 100644 --- a/scripts/RequestResetController.js +++ b/scripts/RequestResetController.js @@ -1,30 +1,26 @@ angular.module('flashy.RequestResetController', ['ui.router']). -controller('RequestResetController', ['$scope', '$state', '$http', - function($scope, $state, $http) { - 'use strict'; - $scope.success = false; - $scope.error = false; - $scope.resetPass = function(email) { - $http.post('/api/request_password_reset/', JSON.stringify({ - 'email': email - })). - success(function(data) { - $scope.success = true; - //$state.go('requestresetsuccess'); - console.log('SUCCESS'); - console.log(data); - }). - error(function(data, status, header, config) { - if (data.email) { - $scope.error = true; - } - console.log('ERROR'); - console.log(data); - }); - }; + controller('RequestResetController', function($scope, $state, $http) { + $scope.success = false; + $scope.error = false; + $scope.resetPass = function(email) { + $http.post('/api/request_password_reset/', {email: email}). + success(function(data) { + $scope.success = true; + //$state.go('requestresetsuccess'); + console.log('SUCCESS'); + console.log(data); + }). + error(function(data, status, header, config) { + if (data.email) { + $scope.error = true; + } + console.log('ERROR'); + console.log(data); + }); + }; - $scope.cancelReset = function() { - $state.go('login'); - }; -}]); + $scope.cancelReset = function() { + $state.go('login'); + }; + }); diff --git a/templates/requestpasswordreset.html b/templates/requestpasswordreset.html index b1238c7..ba15111 100644 --- a/templates/requestpasswordreset.html +++ b/templates/requestpasswordreset.html @@ -27,10 +27,11 @@
    + - +