From 4bf59f11fdbbfd92f08e0e6fcf51bc79a15c50bb Mon Sep 17 00:00:00 2001 From: Carlos Vega <carlos.vega@uni.lu> Date: Tue, 27 Nov 2018 10:46:50 +0100 Subject: [PATCH] login page redirects to index if the user is already authenticated. Done in the template code since there is no view that handles this template --- smash/web/templates/login.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/smash/web/templates/login.html b/smash/web/templates/login.html index e3ba6815..9de902ce 100644 --- a/smash/web/templates/login.html +++ b/smash/web/templates/login.html @@ -1,6 +1,9 @@ {% load static %}<!DOCTYPE html> <html> <head> + {% if user.is_authenticated %} + <meta http-equiv="REFRESH" content="0;url={% url 'web.views.index' %}"> + {% endif %} <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Scheduling System | Log in</title> -- GitLab