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
ff552fbd
Commit
ff552fbd
authored
Aug 09, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflict in app/controllers/omniauth_callbacks_controller.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
459145fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
app/controllers/omniauth_callbacks_controller.rb
app/controllers/omniauth_callbacks_controller.rb
+2
-5
No files found.
app/controllers/omniauth_callbacks_controller.rb
View file @
ff552fbd
...
@@ -36,11 +36,8 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
...
@@ -36,11 +36,8 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
prompt_for_two_factor
(
@user
)
prompt_for_two_factor
(
@user
)
else
else
log_audit_event
(
@user
,
with:
oauth
[
'provider'
])
log_audit_event
(
@user
,
with:
oauth
[
'provider'
])
<<<<<<<
HEAD
# The counter only gets incremented in `sign_in_and_redirect`
# The counter only gets incremented in `sign_in_and_redirect`
show_ldap_sync_flash
if
@user
.
sign_in_count
==
0
show_ldap_sync_flash
if
@user
.
sign_in_count
==
0
=======
>>>>>>>
upstream
/
master
sign_in_and_redirect
(
@user
)
sign_in_and_redirect
(
@user
)
end
end
else
else
...
@@ -159,13 +156,13 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
...
@@ -159,13 +156,13 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
def
oauth
def
oauth
@oauth
||=
request
.
env
[
'omniauth.auth'
]
@oauth
||=
request
.
env
[
'omniauth.auth'
]
end
end
def
fail_login
def
fail_login
error_message
=
@user
.
errors
.
full_messages
.
to_sentence
error_message
=
@user
.
errors
.
full_messages
.
to_sentence
return
redirect_to
omniauth_error_path
(
oauth
[
'provider'
],
error:
error_message
)
return
redirect_to
omniauth_error_path
(
oauth
[
'provider'
],
error:
error_message
)
end
end
def
fail_ldap_login
def
fail_ldap_login
flash
[
:alert
]
=
'Access denied for your LDAP account.'
flash
[
:alert
]
=
'Access denied for your LDAP account.'
...
...
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