fixed totp and go mod
This commit is contained in:
parent
ec5a376733
commit
3a3140875e
297 changed files with 52714 additions and 15245 deletions
|
|
@ -583,7 +583,7 @@ func userTotpHandler(ctx *Context) {
|
|||
Title: "TOTP",
|
||||
BodyTitle: "TOTP",
|
||||
}
|
||||
req := otp.Request{Username: ctx.Var("user")}
|
||||
req := otp.Request{Username: ctx.User()}
|
||||
u, err := ctx.Srv.DB.GetUser()
|
||||
if err != nil {
|
||||
ctx.Error(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue