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
Tatuya Kamada
gitlab-ce
Commits
6f5cd03f
Commit
6f5cd03f
authored
Feb 22, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix OAuth/SAML user blocking behavior
parent
56de781a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lib/gitlab/o_auth/user.rb
lib/gitlab/o_auth/user.rb
+3
-1
No files found.
lib/gitlab/o_auth/user.rb
View file @
6f5cd03f
...
@@ -29,9 +29,11 @@ module Gitlab
...
@@ -29,9 +29,11 @@ module Gitlab
def
save
(
provider
=
'OAuth'
)
def
save
(
provider
=
'OAuth'
)
unauthorized_to_create
unless
gl_user
unauthorized_to_create
unless
gl_user
block_after_save
=
needs_blocking?
gl_user
.
save!
gl_user
.
save!
gl_user
.
block
if
needs_blocking?
gl_user
.
block
if
block_after_save
log
.
info
"(
#{
provider
}
) saving user
#{
auth_hash
.
email
}
from login with extern_uid =>
#{
auth_hash
.
uid
}
"
log
.
info
"(
#{
provider
}
) saving user
#{
auth_hash
.
email
}
from login with extern_uid =>
#{
auth_hash
.
uid
}
"
gl_user
gl_user
...
...
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