Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
b9dee713
Commit
b9dee713
authored
Jul 24, 2012
by
Thomas Lechauve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Firefox) Fix redirect_uri format for auth request
parent
267dfdb0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vifib/js/pages.js
vifib/js/pages.js
+2
-2
No files found.
vifib/js/pages.js
View file @
b9dee713
$
.
vifib
.
login
=
{
facebook
:
function
(
params
)
{
var
redirect
=
window
.
location
.
origin
+
window
.
location
.
pathname
+
'
#/dashboard/
'
+
'
?
'
,
var
redirect
=
location
.
protocol
+
'
//
'
+
location
.
host
+
location
.
pathname
+
'
#/dashboard/
'
+
'
?
'
,
fburl
=
'
https://www.facebook.com/dialog/oauth?
'
+
'
client_id=
'
+
$
(
document
).
slapos
(
'
store
'
,
'
fbappid
'
)
+
'
&redirect_uri=
'
+
encodeURIComponent
(
redirect
)
+
...
...
@@ -11,7 +11,7 @@ $.vifib.login = {
window
.
location
.
href
=
fburl
;
},
google
:
function
(
params
)
{
var
redirect
=
window
.
location
.
origin
+
window
.
location
.
pathname
+
'
?
'
,
var
redirect
=
location
.
protocol
+
'
//
'
+
location
.
host
+
location
.
pathname
,
ggurl
=
'
https://accounts.google.com/o/oauth2/auth?
'
+
'
client_id=
'
+
$
(
document
).
slapos
(
'
store
'
,
'
ggappid
'
)
+
'
&redirect_uri=
'
+
encodeURIComponent
(
redirect
)
+
...
...
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