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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
f2af30f1
Commit
f2af30f1
authored
Apr 06, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip email confirmation when set by admin or via LDAP.
parent
45ca39e8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
CHANGELOG
CHANGELOG
+1
-0
app/controllers/admin/users_controller.rb
app/controllers/admin/users_controller.rb
+1
-1
lib/gitlab/ldap/user.rb
lib/gitlab/ldap/user.rb
+1
-0
No files found.
CHANGELOG
View file @
f2af30f1
...
...
@@ -62,6 +62,7 @@ v 7.10.0 (unreleased)
- Project labels are now available over the API under the "tag_list" field (Cristian Medina)
- Fixed link paths for HTTP and SSH on the admin project view (Jeremy Maziarz)
- Fix and improve help rendering (Sullivan Sénéchal)
- Skip email confirmation when set by admin or via LDAP.
v 7.9.2
...
...
app/controllers/admin/users_controller.rb
View file @
f2af30f1
...
...
@@ -72,8 +72,8 @@ class Admin::UsersController < Admin::ApplicationController
end
respond_to
do
|
format
|
user
.
skip_reconfirmation!
if
user
.
update_attributes
(
user_params_with_pass
)
user
.
confirm!
format
.
html
{
redirect_to
[
:admin
,
user
],
notice:
'User was successfully updated.'
}
format
.
json
{
head
:ok
}
else
...
...
lib/gitlab/ldap/user.rb
View file @
f2af30f1
...
...
@@ -39,6 +39,7 @@ module Gitlab
end
def
update_user_attributes
gl_user
.
skip_reconfirmation!
gl_user
.
email
=
auth_hash
.
email
# Build new identity only if we dont have have same one
...
...
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