+1
appview/db/db.go
+1
appview/db/db.go
···
+51
-6
appview/db/email.go
+51
-6
appview/db/email.go
···-err := e.QueryRow(query, did).Scan(&email.ID, &email.Did, &email.Address, &email.Verified, &email.Primary, &email.VerificationCode, &createdStr)+err := e.QueryRow(query, did).Scan(&email.ID, &email.Did, &email.Address, &email.Verified, &email.Primary, &email.VerificationCode, &lastSent, &createdStr)-err := e.QueryRow(query, did, em).Scan(&email.ID, &email.Did, &email.Address, &email.Verified, &email.Primary, &email.VerificationCode, &createdStr)+err := e.QueryRow(query, did, em).Scan(&email.ID, &email.Did, &email.Address, &email.Verified, &email.Primary, &email.VerificationCode, &lastSent, &createdStr)······-err := rows.Scan(&email.Did, &email.Address, &email.Verified, &email.Primary, &email.VerificationCode, &createdStr)+err := rows.Scan(&email.Did, &email.Address, &email.Verified, &email.Primary, &email.VerificationCode, &lastSent, &createdStr)···
+11
-1
appview/pages/templates/settings.html
+11
-1
appview/pages/templates/settings.html
···
+1
appview/state/router.go
+1
appview/state/router.go
+107
-15
appview/state/settings.go
+107
-15
appview/state/settings.go
···+Text: `Click the link below (or copy and paste it into your browser) to verify your email address.+Html: `<p>Click the link (or copy and paste it into your browser) to verify your email address.</p>+func (s *State) sendVerificationEmail(w http.ResponseWriter, did, emailAddr, code string, errorContext string) error {+s.pages.Notice(w, "settings-emails-error", fmt.Sprintf("Unable to send verification email at this moment, try again later. %s", errorContext))···-Text: `Click the link below (or copy and paste it into your browser) to verify your email address.-Html: `<p>Click the link (or copy and paste it into your browser) to verify your email address.</p>-<p><a href="` + s.verifyUrl(did, emAddr, code) + `">` + s.verifyUrl(did, emAddr, code) + `</a></p>`,-s.pages.Notice(w, "settings-emails-error", "Unable to send verification email at this moment, try again later.")···+s.pages.Notice(w, "settings-emails-error", "Unable to resend verification email at this moment, try again later.")+s.pages.Notice(w, "settings-emails-error", fmt.Sprintf("Please wait %d minutes before requesting another verification email.", int(waitTime.Minutes()+1)))+s.pages.Notice(w, "settings-emails-error", "Unable to resend verification email at this moment, try again later.")+s.pages.Notice(w, "settings-emails-error", "Unable to resend verification email at this moment, try again later.")+s.pages.Notice(w, "settings-emails-error", "Unable to resend verification email at this moment, try again later.")+s.pages.Notice(w, "settings-emails-success", "Verification email resent. Click the link in the email we sent you to verify your email address.")