Commit c2e89ab3 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Proper redirect if no auth cookie found

parent 745113cc
......@@ -496,7 +496,7 @@
var args = util.parse_api_error.apply(util, arguments);
// force logout if UNAUTHORIZED request arrives
if (args.code == 401) { snf.auth_client.logout(); return };
if (args.code == 401) { snf.auth_client.redirect_to_login(); return };
var error_entry = [args.ns, args.code, args.message, args.type, args.details, args];
this.error_view.show_error.apply(this.error_view, error_entry);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment