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:
parent
d7639f3a30
commit
ea1f92cb05
|
@ -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.
|
||||||
|
|
Reference in a new issue