timekeeper

[Abandoned unfinished] CGI web application in C for time tracking. (My first, just a learning project)
Log | Files | Refs | README

commit 8afbecf74dd0dbe552b25bb983b9029df4e95a77
parent 68deef9e64bfbff5296f3fc523647a80c5306074
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Tue, 12 Mar 2024 17:02:05 -0700

Redirect to main page instead of index on login

Diffstat:
Mpages/login.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pages/login.c b/pages/login.c @@ -44,7 +44,7 @@ pagelogin(struct pagedata *pd) enum user_error userstatus; if (pd->user) - return redirect(pd, pd->pages[PageIndex], "Logged in"); + return redirect(pd, pd->pages[PageMain], "Logged in"); userstatus = LoginLast; if (pd->req.fieldmap[KeyUsername] && pd->req.fieldmap[KeyPassword]) { @@ -63,7 +63,7 @@ pagelogin(struct pagedata *pd) freeuser(user); if (status != KCGI_OK) return status; - return redirect(pd, pd->pages[PageIndex], "Logged in"); + return redirect(pd, pd->pages[PageMain], "Logged in"); } } }