handle profile updates correctly

This commit is contained in:
stryan 2021-03-31 16:15:36 -04:00
parent 2624034fd7
commit 9be48a061e

View File

@ -31,9 +31,8 @@ func profileEdit(res http.ResponseWriter, req *http.Request) {
log.Printf("Error updating user account: %v\n", err) log.Printf("Error updating user account: %v\n", err)
http.Error(res, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError) http.Error(res, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
return return
} else { }
}
http.Redirect(res, req, "/profile/view", 303) http.Redirect(res, req, "/profile/view", 303)
}
}
return return
} }