From e743f13f8183c67b84fe83602abd39ef9c45833d Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 16 Jun 2021 23:04:35 +0200 Subject: [PATCH] recovery: fix error when creating multiple keys for the same user Signed-off-by: Jens Langhammer --- authentik/recovery/management/commands/create_recovery_key.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/recovery/management/commands/create_recovery_key.py b/authentik/recovery/management/commands/create_recovery_key.py index 0ce420880..aa502d6bd 100644 --- a/authentik/recovery/management/commands/create_recovery_key.py +++ b/authentik/recovery/management/commands/create_recovery_key.py @@ -44,7 +44,7 @@ class Command(BaseCommand): user=user, intent=TokenIntents.INTENT_RECOVERY, description=f"Recovery Token generated by {getuser()} on {_now}", - identifier=f"ak-recovery-{user}", + identifier=f"ak-recovery-{user}-{_now}", ) self.stdout.write( (