> Versão Markdown de https://yucca.app/pt/docs/guides/ResetPassword/. Índice da documentação: [llms.txt](https://yucca.app/pt/llms.txt), texto completo em um arquivo: [llms-full.txt](https://yucca.app/pt/llms-full.txt). Qualquer página está disponível como Markdown: adicione `.md` à URL sem a barra final.

# Redefinição de senha

## Confirmação de e-mail

A partir da versão 0.10.0, o Yucca passou a permitir redefinir a senha por meio da confirmação de propriedade do e-mail. Para isso, é necessário que o usuário tenha um e-mail real e que haja um [cliente de e-mail](https://yucca.app/pt/docs/configuration.md#smtp_client) configurado no servidor.

[![ResetPassword1](/pt/assets/images/ResetPassword1-bdb4a8505abf384bb1ec619dcc3befd0.png)](https://yucca.app/pt/assets/files/ResetPassword1-bdb4a8505abf384bb1ec619dcc3befd0.png)

## Linha de comando

Caso o cliente de e-mail não esteja configurado, é possível redefinir a senha de qualquer usuário, incluindo o administrador, pela linha de comando:

```bash
/opt/yucca/yucca admin change-password --config=/opt/yucca/yucca.toml --password <NEW_PASSWDORD>

```

Se você não estiver usando um arquivo de configuração, informe sua própria forma de conexão com o banco de dados. Os parâmetros de conexão podem ser vistos na ajuda:

```bash
/opt/yucca/yucca admin change-password --help
Change a user's password

Usage:
  yucca admin change-password [flags]

Flags:
      --config string                         Path to configuration file (default "/opt/yucca/yucca.toml")
      --data-dir string                       The data directory used to store state and other persistent data (default "data")
      --database-busy-timeout int             Timeout in seconds for waiting for an SQLite table to become unlocked (default 500)
      --database-ca-cert-path string          The path to the CA certificate to use (default "/etc/ssl/certs")
      --database-cache-mode string            Shared cache setting used for connecting to the database (private, shared) (default "shared")
      --database-client-cert-path string      The path to the client cert
      --database-client-key-path string       The path to the client key
      --database-conn-max-lifetime duration   Sets the maximum amount of time a connection may be reused (default 0s)
      --database-host string                  Database host (not applicable for sqlite3) (default "127.0.0.1:5432")
      --database-max-idle-conn int            The maximum number of connections in the idle connection pool (default 2)
      --database-max-open-conn int            The maximum number of open connections to the database
      --database-name string                  The name of the Yucca database (default "yucca")
      --database-password string              The database user's password (not applicable for sqlite3) (default "postgres")
      --database-path string                  SQLite database location
      --database-ssl-mode string              SSL mode for Postgres (disable, require or verify-full) (default "disable")
      --database-user string                  The database user (not applicable for sqlite3) (default "postgres")
  -h, --help                                  Help for change-password
      --name string                           User name (leave blank to update the password for the first user)
      --password string                       User password
      --state-dir string                      The directory used to store state and other persistent data (default "<data-dir>/state")


```
