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
281ec271
Commit
281ec271
authored
Nov 13, 2018
by
Cosmin Cojocar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update also to a list of empty redirect URIs and Peers
parent
9d1ec6c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
api.go
server/api.go
+2
-3
No files found.
server/api.go
View file @
281ec271
...
...
@@ -86,13 +86,12 @@ func (d dexAPI) UpdateClient(ctx context.Context, req *api.UpdateClientReq) (*ap
}
err
:=
d
.
s
.
UpdateClient
(
req
.
Id
,
func
(
old
storage
.
Client
)
(
storage
.
Client
,
error
)
{
if
req
.
RedirectUris
!=
nil
&&
len
(
req
.
RedirectUris
)
>
0
{
if
req
.
RedirectUris
!=
nil
{
old
.
RedirectURIs
=
req
.
RedirectUris
}
if
req
.
TrustedPeers
!=
nil
&&
len
(
req
.
TrustedPeers
)
>
0
{
if
req
.
TrustedPeers
!=
nil
{
old
.
TrustedPeers
=
req
.
TrustedPeers
}
old
.
Public
=
req
.
Public
if
req
.
Name
!=
""
{
old
.
Name
=
req
.
Name
}
...
...
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