Commit 13b40a7b authored by Francesc Guasch's avatar Francesc Guasch
Browse files

wip(frontend): return http status when failed login

issue #1137 and it will affect issue #1141 too
parent 10a17e0a
......@@ -1303,6 +1303,9 @@ sub login {
." no-repeat bottom center scroll;\n\t}"];
sleep 5 if scalar(@error);
my @error_status;
@error_status = ( status => 403) if @error;
$c->render(
template => ($CONFIG_FRONT->{login_custom} or 'main/start')
,css => ['/css/main.css']
......@@ -1315,6 +1318,7 @@ sub login {
,login_message => $CONFIG_FRONT->{login_message}
,guide => $CONFIG_FRONT->{guide}
,login_hash => ''
,@error_status
);
}
......
Supports Markdown
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