Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
877fd6dd
Commit
877fd6dd
authored
Apr 01, 2022
by
Nick Malcolm
Committed by
Evan Read
Apr 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace static, weak password
parent
635ce432
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
doc/security/reset_user_password.md
doc/security/reset_user_password.md
+5
-3
No files found.
doc/security/reset_user_password.md
View file @
877fd6dd
...
...
@@ -74,11 +74,13 @@ If you know the username, user ID, or email address, you can use the Rails conso
user = User.find_by(email: 'user@example.com')
```
1.
Reset the password:
1.
Reset the password by setting a value for
`user.password`
and
`user.password_confirmation`
. For example, to set a new random
password:
```
ruby
user
.
password
=
'secret_pass'
user
.
password_confirmation
=
'secret_pass'
new_password
=
::
User
.
random_password
user
.
password
=
new_password
user
.
password_confirmation
=
new_password
```
1. Optional. Notify the user that an administrator changed their password:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment