* fix(login): redirect user from login page if already logged in
the user should not be able to access the login page if a user session already exists. closes#6500.
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
* fix(test-website): fix website test
what is the point in writing tests if they don't really work/function as intended?
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
* fix(regex): do not replace '\' in rules
that defeats the entire purpose of creating rules, wtf?
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
* fix(test_website): change user using set_user()
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
* redirect: prefix string with r to escape string literals
Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>