GITLAB: How to reset user password

 How to reset user password | GitLab

There are a few ways to reset the password of a user.

Rake Task

Introduced in GitLab 13.9.

GitLab provides a Rake Task to reset passwords of users using their usernames, which can be invoked by the following command:

sudo gitlab-rake "gitlab:password:reset"

GitLab asks for a username, a password, and a password confirmation. Upon giving proper values for them, the password of the specified user is updated.

The Rake task also takes the username as an argument, as shown in the example below:

sudo gitlab-rake "gitlab:password:reset[johndoe]"
To reset the default admin password, run this Rake task with the username root, which is the default username of that administrator account.

Không có nhận xét nào:

api feed with published=false?

  Câu trả lời ngắn gọn là: CÓ . Trên thực tế, đây chính là cách chuẩn nhất để tạo các bài viết chưa hiển thị công khai (bao gồm Bản nháp, B...