Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
76befe03
Commit
76befe03
authored
Nov 18, 2015
by
bobbyrullo
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #183 from stongo/issue-135
server: add scope to newLoginURLFromSession
parents
728b64c3
7d0ecf95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
register.go
server/register.go
+3
-0
No files found.
server/register.go
View file @
76befe03
...
@@ -296,6 +296,9 @@ func newLoginURLFromSession(issuer url.URL, ses *session.Session, register bool,
...
@@ -296,6 +296,9 @@ func newLoginURLFromSession(issuer url.URL, ses *session.Session, register bool,
if
msgCode
!=
""
{
if
msgCode
!=
""
{
v
.
Set
(
"msg_code"
,
msgCode
)
v
.
Set
(
"msg_code"
,
msgCode
)
}
}
if
len
(
ses
.
Scope
)
>
0
{
v
.
Set
(
"scope"
,
strings
.
Join
(
ses
.
Scope
,
" "
))
}
loginURL
.
RawQuery
=
v
.
Encode
()
loginURL
.
RawQuery
=
v
.
Encode
()
return
&
loginURL
return
&
loginURL
...
...
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