Auth: Implement 2FA setup and login in the web user interface #808 #3943

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-03-21 14:32:51 +01:00
parent cfe88f141b
commit 4425becb3d
222 changed files with 6384 additions and 7622 deletions

View File

@@ -17,8 +17,11 @@ var UsersModCommand = cli.Command{
Name: "mod",
Usage: "Changes user account settings",
ArgsUsage: "[username]",
Flags: UserFlags,
Action: usersModAction,
Flags: append(UserFlags, cli.BoolFlag{
Name: "disable-2fa",
Usage: UserDisable2FA,
}),
Action: usersModAction,
}
// usersModAction modifies an existing user account.