v0.3.0-unstable16

This commit is contained in:
Yann Stepienik 2023-05-01 13:11:30 +01:00
parent a932933550
commit e15e2a0a71
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.3.0-unstable15",
"version": "0.3.0-unstable16",
"description": "",
"main": "test-server.js",
"bugs": {

View file

@ -16,6 +16,7 @@ func LoggedInOnlyWithRedirect(w http.ResponseWriter, req *http.Request) error {
if !isUserLoggedIn || userNickname == "" {
Error("LoggedInOnlyWithRedirect: User is not logged in", nil)
http.Redirect(w, req, "/ui/login?notlogged=1&redirect="+req.URL.Path, http.StatusFound)
return errors.New("User not logged in")
}
if(mfa == 1) {