website/docs: Update troubleshooting login.md (#5814)

Update login.md

Added instructions to recover the key via cli

Signed-off-by: Thomas B <toolboxes909@gmail.com>
This commit is contained in:
Thomas B 2023-06-05 05:16:53 -04:00 committed by GitHub
parent d7639f3a30
commit ea1f92cb05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -14,10 +14,16 @@ To create the key, run the following command:
docker-compose run --rm server create_recovery_key 10 akadmin docker-compose run --rm server create_recovery_key 10 akadmin
``` ```
or, for Kubernetes, run For Kubernetes, run
``` ```
kubectl exec -it deployment/authentik-worker -c authentik -- ak create_recovery_key 10 akadmin kubectl exec -it deployment/authentik-worker -c authentik -- ak create_recovery_key 10 akadmin
``` ```
or, for CLI, run
```
ak create_recovery_key 10 akadmin
```
This will output a link, that can be used to instantly gain access to authentik as the user specified above. The link is valid for amount of years specified above, in this case, 10 years. This will output a link, that can be used to instantly gain access to authentik as the user specified above. The link is valid for amount of years specified above, in this case, 10 years.