mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
reload app after login
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user