This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix OAuth authorization redirect
closed-social-glitch-2
Eugen Rochko
7 years ago
parent
abb8f5837e
commit
b746a931a5
3 changed files
with
10 additions
and
13 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-12
app/assets/stylesheets/forms.scss
+3
-0
app/controllers/oauth/authorizations_controller.rb
+2
-1
app/views/oauth/authorizations/show.html.haml
+ 5
- 12
app/assets/stylesheets/forms.scss
View File
@ -1,3 +1,8 @@
code
{
font-family
:
'
Roboto Mono
'
,
monospace
;
font-weight
:
400
;
}
.
form-container
{
max-width
:
400px
;
padding
:
20px
;
@ -85,18 +90,6 @@
}
}
code
{
display
:
block
;
font-family
:
'
Roboto Mono
'
,
monospace
;
font-weight
:
400
;
font-size
:
12px
;
margin-top
:
20px
;
background
:
#
282c37
;
border-radius
:
4px
;
padding
:
2px
;
word-wrap
:
break-word
;
}
.
actions
{
margin-top
:
30px
;
}
+ 3
- 0
app/controllers/oauth/authorizations_controller.rb
View File
@ -1,5 +1,8 @@
class
Oauth
::
AuthorizationsController
<
Doorkeeper
::
AuthorizationsController
skip_before_action
:authenticate_resource_owner!
before_action
:store_current_location
before_action
:authenticate_resource_owner!
private
+ 2
- 1
app/views/oauth/authorizations/show.html.haml
View File
@ -1 +1,2 @@
%code= params[:code]
.flash-message
%code= params[:code]
Write
Preview
Loading…
Cancel
Save