ref: 9f5534beb027b614303c19567a5acf32a3685b73
parent: efcf1704a5b76d5136a710f020ff7c0b0cf00152
author: halfwit <michaelmisch1985@gmail.com>
date: Tue Nov 12 08:40:35 PST 2019
Same with forms
--- a/forms/doctor/application.go
+++ b/forms/doctor/application.go
@@ -14,7 +14,7 @@
b := &router.Form{
Access: router.GuestAuth,
Path: "doctor/application",
- Validator: Application,
+ Validator: application,
Redirect: "/index.html",
After: plugins.EmailForm | plugins.Countries | plugins.Services | plugins.FormToken,
}
@@ -21,8 +21,7 @@
router.AddPost(b)
}
-// Application - olmaxmedical.com/doctor/application.html
-func Application(r *http.Request, p *message.Printer) []string {
+func application(r *http.Request, p *message.Printer) []string {
var errors []string
data, err := forms.Parse(r)
if err != nil {
--- a/forms/doctor/profile.go
+++ b/forms/doctor/profile.go
@@ -14,7 +14,7 @@
b := &router.Form{
Access: router.DoctorAuth,
Path: "doctor/profile",
- Validator: DoctorProfile,
+ Validator: profile,
Redirect: "/doctor/profile.html",
After: plugins.FormToken | plugins.AddAppointment,
}
@@ -21,8 +21,7 @@
router.AddPost(b)
}
-// DoctorProfile - olmaxmedical.com/doctor/profile.html
-func DoctorProfile(r *http.Request, p *message.Printer) []string {
+func profile(r *http.Request, p *message.Printer) []string {
var errors []string
data, err := forms.Parse(r)
if err != nil {
--- a/forms/newpassword.go
+++ b/forms/newpassword.go
@@ -13,7 +13,7 @@
b := &router.Form{
Access: router.GuestAuth,
Path: "newpassword",
- Validator: NewPassword,
+ Validator: newPassword,
Redirect: "/login.html",
After: plugins.ResetPassword | plugins.FormToken,
}
@@ -20,7 +20,7 @@
router.AddPost(b)
}
-func NewPassword(r *http.Request, p *message.Printer) []string {
+func newPassword(r *http.Request, p *message.Printer) []string {
var errors []string
data, err := forms.Parse(r)
if err != nil {
--- a/forms/patient/offer.go
+++ b/forms/patient/offer.go
@@ -14,7 +14,7 @@
b := &router.Form{
Access: router.PatientAuth,
Path: "patient/offer",
- Validator: Offer,
+ Validator: offer,
After: plugins.Search | plugins.Services,
Redirect: "results.html",
}
@@ -21,8 +21,7 @@
router.AddPost(b)
}
-// Offer - olmaxmedical.com/patient/offer.html
-func Offer(r *http.Request, p *message.Printer) []string {
+func offer(r *http.Request, p *message.Printer) []string {
var errors []string
data, err := forms.Parse(r)
if err != nil {
--- a/forms/patient/profile.go
+++ b/forms/patient/profile.go
@@ -12,7 +12,7 @@
b := &router.Form{
Access: router.PatientAuth,
Path: "patient/profile",
- Validator: PatientProfile,
+ Validator: profile,
After: 0,
Redirect: "/patient/profile.html",
}
@@ -19,8 +19,7 @@
router.AddPost(b)
}
-// PatientProfile - olmaxmedical.com/patient/profile.html
-func PatientProfile(r *http.Request, p *message.Printer) []string {
+func profile(r *http.Request, p *message.Printer) []string {
var errors []string
data, err := forms.Parse(r)
if err != nil {
--- a/forms/patient/symptoms.go
+++ b/forms/patient/symptoms.go
@@ -14,7 +14,7 @@
b := &router.Form{
Access: router.PatientAuth,
Path: "patient/symptoms",
- Validator: Symptoms,
+ Validator: symptoms,
After: plugins.EmailForm | plugins.MakeOffer,
Redirect: "patient/profile.html",
}
@@ -21,8 +21,7 @@
router.AddPost(b)
}
-// Symptoms - olmaxmedical.com/patient/symptoms.html
-func Symptoms(r *http.Request, p *message.Printer) []string {
+func symptoms(r *http.Request, p *message.Printer) []string {
var errors []string
data, err := forms.Parse(r)
if err != nil {
--- a/forms/resetpassword.go
+++ b/forms/resetpassword.go
@@ -13,7 +13,7 @@
b := &router.Form{
Access: router.GuestAuth,
Path: "resetpassword",
- Validator: Reset,
+ Validator: reset,
Redirect: "/login.html",
After: plugins.ResetPassword,
}
@@ -20,7 +20,7 @@
router.AddPost(b)
}
-func Reset(r *http.Request, p *message.Printer) []string {
+func reset(r *http.Request, p *message.Printer) []string {
var errors []string
data, err := forms.Parse(r)
if err != nil {
--- a/forms/signup.go
+++ b/forms/signup.go
@@ -13,7 +13,7 @@
b := &router.Form{
Access: router.GuestAuth,
Path: "signup",
- Validator: Signin,
+ Validator: signin,
Redirect: "/login.html",
After: plugins.SendSignup,
}
@@ -20,7 +20,7 @@
router.AddPost(b)
}
-func Signin(r *http.Request, p *message.Printer) []string {
+func signin(r *http.Request, p *message.Printer) []string {
var errors []string
data, err := forms.Parse(r)
if err != nil {