enable switch to pw totp in account settings

This commit is contained in:
Julian Krauser 2025-05-05 17:43:57 +02:00
parent be22c78372
commit ddb460f8d0
6 changed files with 165 additions and 4 deletions

View file

@ -1,3 +1,5 @@
import { LoginRoutineEnum } from "../../../enums/loginRoutineEnum";
export interface CreateUserCommand {
mail: string;
username: string;
@ -18,6 +20,7 @@ export interface UpdateUserCommand {
export interface UpdateUserSecretCommand {
id: string;
secret: string;
routine: LoginRoutineEnum;
}
export interface TransferUserOwnerCommand {

View file

@ -75,6 +75,7 @@ export default abstract class UserCommandHandler {
.update(user)
.set({
secret: updateUser.secret,
routine: updateUser.routine,
})
.where("id = :id", { id: updateUser.id })
.execute()