v0.3.0-unstable16
This commit is contained in:
parent
a932933550
commit
e15e2a0a71
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "cosmos-server",
|
||||
"version": "0.3.0-unstable15",
|
||||
"version": "0.3.0-unstable16",
|
||||
"description": "",
|
||||
"main": "test-server.js",
|
||||
"bugs": {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue