From fb459f2c2c32dda29870731b6dae1452bbab625f Mon Sep 17 00:00:00 2001 From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Fri, 8 Nov 2019 13:44:18 -0600 Subject: [PATCH] Add password reset to FAQ (#8883) * Add password reset to FAQ Signed-off-by: jolheiser * Add links to email setup docs Signed-off-by: jolheiser * Add en-us to email setup Signed-off-by: jolheiser * Update docs/content/doc/help/faq.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Manually merge changes from @guillep2k and add small changes Signed-off-by: jolheiser --- docs/content/doc/help/faq.en-us.md | 17 ++++++++++++++++- .../{email-setup.md => email-setup.en-us.md} | 0 2 files changed, 16 insertions(+), 1 deletion(-) rename docs/content/doc/usage/{email-setup.md => email-setup.en-us.md} (100%) diff --git a/docs/content/doc/help/faq.en-us.md b/docs/content/doc/help/faq.en-us.md index 856e756db..8a65b522f 100644 --- a/docs/content/doc/help/faq.en-us.md +++ b/docs/content/doc/help/faq.en-us.md @@ -43,6 +43,8 @@ Also see [Support Options]({{< relref "doc/help/seek-help.en-us.md" >}}) * [Missing releases after migration repository with tags](#missing-releases-after-migrating-repository-with-tags) * [LFS Issues](#lfs-issues) * [How can I create users before starting Gitea](#how-can-i-create-users-before-starting-gitea) +* [How can I enable password reset](#how-can-i-enable-password-reset) +* [How can a user's password be changed](#how-can-a-user-s-password-be-changed) ## Difference between 1.x and 1.x.x downloads @@ -275,4 +277,17 @@ By default, your LFS token will expire after 20 minutes. If you have a slow conn You may want to set this value to `60m` or `120m`. ## How can I create users before starting Gitea -Gitea provides a sub-command `gitea migrate` to initialize the database, after which you can use the [admin CLI commands]({{< relref "doc/usage/command-line.en-us.md" >}}) to add users like normal. +Gitea provides a sub-command `gitea migrate` to initialize the database, after which you can use the [admin CLI commands]({{< relref "doc/usage/command-line.en-us.md#admin" >}}) to add users like normal. + +## How can I enable password reset +There is no setting for password resets. It is enabled when a [mail service]({{< relref "doc/usage/email-setup.en-us.md" >}}) is configured, and disabled otherwise. + +## How can a user's password be changed +- As an **admin**, you can change any user's password (and optionally force them to change it on next login)... + - By navigating to your `Site Administration -> User Accounts` page and editing a user. + - By using the [admin CLI commands]({{< relref "doc/usage/command-line.en-us.md#admin" >}}). + Keep in mind most commands will also need a [global flag]({{< relref "doc/usage/command-line.en-us.md#global-options" >}}) to point the CLI at the correct configuration. +- As a **user** you can change it... + - In your account `Settings -> Account` page (this method **requires** you to know your current password). + - By using the `Forgot Password` link. + If the `Forgot Password/Account Recovery` page is disabled, please contact your administrator to configure a [mail service]({{< relref "doc/usage/email-setup.en-us.md" >}}). diff --git a/docs/content/doc/usage/email-setup.md b/docs/content/doc/usage/email-setup.en-us.md similarity index 100% rename from docs/content/doc/usage/email-setup.md rename to docs/content/doc/usage/email-setup.en-us.md