Revision 3a7e5b0f

b/snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_main_view.js
496 496
            var args = util.parse_api_error.apply(util, arguments);
497 497
            
498 498
            // force logout if UNAUTHORIZED request arrives
499
            if (args.code == 401) { snf.auth_client.logout(); return };
499
            if (args.code == 401) { snf.auth_client.redirect_to_login(); return };
500 500

  
501 501
            var error_entry = [args.ns, args.code, args.message, args.type, args.details, args];
502 502
            this.error_view.show_error.apply(this.error_view, error_entry);

Also available in: Unified diff