mirror of
https://github.com/1f349/tulip.git
synced 2024-12-23 00:34:07 +00:00
Use form value for the digits parameter
This commit is contained in:
parent
4bc46c5874
commit
4c0a266fb1
@ -77,7 +77,7 @@ func (h *HttpServer) fetchAndValidateOtp(rw http.ResponseWriter, sub uuid.UUID,
|
||||
|
||||
func (h *HttpServer) EditOtpPost(rw http.ResponseWriter, req *http.Request, _ httprouter.Params, auth UserAuth) {
|
||||
var digits int
|
||||
switch req.URL.Query().Get("digits") {
|
||||
switch req.FormValue("digits") {
|
||||
case "6":
|
||||
digits = 6
|
||||
case "7":
|
||||
|
Loading…
Reference in New Issue
Block a user