summaryrefslogtreecommitdiffstats
path: root/roseh.moe.go
diff options
context:
space:
mode:
Diffstat (limited to 'roseh.moe.go')
-rw-r--r--roseh.moe.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/roseh.moe.go b/roseh.moe.go
index 1f9a9f2..7afbf83 100644
--- a/roseh.moe.go
+++ b/roseh.moe.go
@@ -482,7 +482,8 @@ func verifyRedirect(redirect string) (string, bool) {
func login(w http.ResponseWriter, r *http.Request) {
if !checkPassword(r.FormValue("password")) {
if err := loginTemplate.Execute(w, loginTemplateArgs{
- Error: true,
+ Redirect: r.FormValue("redirect"),
+ Error: true,
}); err != nil {
log.Printf("Warning: login: %s", err)
}