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
516b89ca
Commit
516b89ca
authored
Dec 21, 2016
by
Yorick Peterse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolved conflicts in app/models/user.rb
parent
435562ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
app/models/user.rb
app/models/user.rb
+0
-23
No files found.
app/models/user.rb
View file @
516b89ca
...
@@ -328,34 +328,11 @@ class User < ActiveRecord::Base
...
@@ -328,34 +328,11 @@ class User < ActiveRecord::Base
find_by
(
id:
Key
.
unscoped
.
select
(
:user_id
).
where
(
id:
key_id
))
find_by
(
id:
Key
.
unscoped
.
select
(
:user_id
).
where
(
id:
key_id
))
end
end
<<<<<<<
HEAD
def
build_user
(
attrs
=
{})
User
.
new
(
attrs
)
end
def
non_ldap
def
non_ldap
joins
(
'LEFT JOIN identities ON identities.user_id = users.id'
).
joins
(
'LEFT JOIN identities ON identities.user_id = users.id'
).
where
(
'identities.provider IS NULL OR identities.provider NOT LIKE ?'
,
'ldap%'
)
where
(
'identities.provider IS NULL OR identities.provider NOT LIKE ?'
,
'ldap%'
)
end
end
def
clean_username
(
username
)
username
.
gsub!
(
/@.*\z/
,
""
)
username
.
gsub!
(
/\.git\z/
,
""
)
username
.
gsub!
(
/\A-/
,
""
)
username
.
gsub!
(
/[^a-zA-Z0-9_\-\.]/
,
""
)
counter
=
0
base
=
username
while
User
.
by_login
(
username
).
present?
||
Namespace
.
by_path
(
username
).
present?
counter
+=
1
username
=
"
#{
base
}#{
counter
}
"
end
username
end
=======
>>>>>>>
87
b01636e4baf3ef58d83139129956e7eac39d1f
def
reference_prefix
def
reference_prefix
'@'
'@'
end
end
...
...
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