fix: login via code
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -140,9 +140,11 @@ async function disableTotp() {
|
||||
disableError.value = ''
|
||||
|
||||
try {
|
||||
const response = await fetch(`${apiBase}/totp/enroll?code=${encodeURIComponent(disableCode.value)}`, {
|
||||
method: 'DELETE',
|
||||
const response = await fetch(`${apiBase}/totp/enroll/remove`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
credentials: 'include',
|
||||
body: JSON.stringify({ code: disableCode.value }),
|
||||
})
|
||||
|
||||
const data = await response.json()
|
||||
|
||||
Reference in New Issue
Block a user