Files
planka/server/api/helpers/trusted-devices/delete-all-for-user.js
T
Daniel Hiller 2e4904f77d feat: Add two-factor authentication via TOTP
Adds TOTP setup with QR code, login challenge, recovery codes and
trusted devices that let a browser skip the second factor for 30
days. Admins can reset another user's second factor by confirming
with their own password.
2026-08-07 20:11:55 +02:00

18 lines
341 B
JavaScript

/*!
* Copyright (c) 2024 PLANKA Software GmbH
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
*/
module.exports = {
inputs: {
userId: {
type: 'string',
required: true,
},
},
async fn(inputs) {
await TrustedDevice.qm.deleteByUserId(inputs.userId);
},
};