Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/otpgateway/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func handleOTPView(w http.ResponseWriter, r *http.Request) {
msg = "OTP resent"
if err := push(out, pro, app.constants.RootURL, app); err != nil {
app.lo.Error("error sending OTP", "error", err, "provider", pro.provider.ID())
otpErr = errors.New("error resending OTP.")
otpErr = errors.New("Error resending OTP.")
}
}

Expand Down Expand Up @@ -509,7 +509,7 @@ func handleAddressView(w http.ResponseWriter, r *http.Request) {
out.To = to
if err := push(out, pro, app.constants.RootURL, app); err != nil {
app.lo.Error("error sending OTP", "error", err, "provider", pro.provider.ID())
msg = "error sending OTP"
msg = "Error sending OTP."
} else {
http.Redirect(w, r, fmt.Sprintf(uriViewOTP, out.Namespace, out.ID),
http.StatusFound)
Expand Down