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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
b3723fe2
Commit
b3723fe2
authored
Apr 03, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use gitlab_environment because we need:
* ask_to_continue * Gitlab::TaskAbortedByUserError
parent
77a6afd5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
changelogs/unreleased/44425-use-gitlab_environment.yml
changelogs/unreleased/44425-use-gitlab_environment.yml
+5
-0
lib/tasks/gitlab/two_factor.rake
lib/tasks/gitlab/two_factor.rake
+1
-1
No files found.
changelogs/unreleased/44425-use-gitlab_environment.yml
0 → 100644
View file @
b3723fe2
---
title
:
Fix `gitlab-rake gitlab:two_factor:disable_for_all_users`
merge_request
:
18154
author
:
type
:
fixed
lib/tasks/gitlab/two_factor.rake
View file @
b3723fe2
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:two_factor
do
namespace
:two_factor
do
desc
"GitLab | Disable Two-factor authentication (2FA) for all users"
desc
"GitLab | Disable Two-factor authentication (2FA) for all users"
task
disable_for_all_users: :environment
do
task
disable_for_all_users: :
gitlab_
environment
do
scope
=
User
.
with_two_factor
scope
=
User
.
with_two_factor
count
=
scope
.
count
count
=
scope
.
count
...
...
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