mirror of
https://github.com/lxc/incus.git
synced 2026-02-05 09:46:19 +01:00
Currently, incus-user might reset a user's setup if the project name doesn't match the expected format. This change checks if the user already has a valid certificate and access to at least one project before attempting a reset. Fixes #2524 Signed-off-by: Marcos Guillermo <marcos.cosson@ccc.ufcg.edu.br> cmd/incus-user: Don't reset setup if user has access Currently, incus-user might reset a user's setup if the project name doesn't match the expected format. This change checks if the user already has a valid certificate and access to at least one project before attempting a reset. Fixes #2524 Signed-off-by: Marcos Guillermo <marcos.cosson@ccc.ufcg.edu.br>