reload app after login

This commit is contained in:
Athou
2014-08-10 16:37:20 +02:00
parent 45ea215aaf
commit c8e33aa6c7
2 changed files with 3 additions and 3 deletions

View File

@@ -1465,7 +1465,7 @@ module.controller('LoginCtrl', ['$scope', '$location', 'SessionService', functio
var login = function(model) {
var success = function(data) {
$location.path('/');
window.location.href = window.location.href.substring(0, window.location.href.lastIndexOf('#'));
};
var error = function(data) {
$scope.message = data.data;
@@ -1494,8 +1494,7 @@ module.controller('RegisterCtrl', ['$scope', '$location', 'SessionService', 'Ser
$scope.register = function() {
var success = function(data) {
$location.path('/');
$scope.$emit('emitReload');
window.location.href = window.location.href.substring(0, window.location.href.lastIndexOf('#'));
};
var error = function(data) {
$scope.messages = data.data.errors;

View File

@@ -210,6 +210,7 @@ public class CommaFeedApplication extends Application<CommaFeedConfiguration> {
environment.lifecycle().manage(schedulingService);
// TODO swagger ui
// TODO password recovery
}
public static void main(String[] args) throws Exception {