redirect to login page if the account is successfully created
authorrougeronj
Tue, 07 Apr 2015 11:56:43 +0200
changeset 73 1aa813be49ec
parent 72 ed2ee692ff6f
child 74 44ebb0d0b836
redirect to login page if the account is successfully created
client/app/auth/auth_controller.js
--- a/client/app/auth/auth_controller.js	Tue Apr 07 11:55:11 2015 +0200
+++ b/client/app/auth/auth_controller.js	Tue Apr 07 11:56:43 2015 +0200
@@ -43,6 +43,8 @@
 				username: $scope.username,
 				email: $scope.email,
 				password: $scope.password,
+			}, function(){
+				$modalInstance.close('/auth/login');
 			});
 		};
 		$scope.back = function () {