Skip to content

Commit e76f28d

Browse files
committed
fix: TOTP status returns 'enabled' field matching frontend expectation
1 parent 888e165 commit e76f28d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/routes/totp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ func (h *TOTPHandler) TOTPStatus(w http.ResponseWriter, r *http.Request) {
370370
database.DB.QueryRow("SELECT totp_enabled FROM users WHERE id = ?", user.UserID).Scan(&totpEnabled)
371371

372372
writeJSON(w, http.StatusOK, map[string]interface{}{
373-
"totpEnabled": totpEnabled,
373+
"enabled": totpEnabled,
374374
})
375375
}
376376

0 commit comments

Comments
 (0)