Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-10 21:10:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-10 21:10:58 +0300
commitb6dd7408f576e59908e9a293b55b81e00e9d25af (patch)
tree1101d2ac170bfe355e531ffb38804e0fe15c04ee /doc/security/reset_user_password.md
parent8af017c1805fc23513f56dc5a759e1a06d8e0e07 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/security/reset_user_password.md')
-rw-r--r--doc/security/reset_user_password.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/security/reset_user_password.md b/doc/security/reset_user_password.md
index 4a59d2f9a21..e173b1b3318 100644
--- a/doc/security/reset_user_password.md
+++ b/doc/security/reset_user_password.md
@@ -104,6 +104,7 @@ If you know the username, user ID, or email address, you can use the Rails conso
new_password = ::User.random_password
user.password = new_password
user.password_confirmation = new_password
+ user.password_automatically_set = false
```
To set a specific value for the new password:
@@ -112,6 +113,7 @@ If you know the username, user ID, or email address, you can use the Rails conso
new_password = 'examplepassword'
user.password = new_password
user.password_confirmation = new_password
+ user.password_automatically_set = false
```
1. Optional. Notify the user that an administrator changed their password: