Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai3
accountserver
Commits
53ad2d31
Commit
53ad2d31
authored
Oct 28, 2018
by
ale
Browse files
Fix action for /api/resource/email/add_alias
Previously it was deleting aliases instead of adding them.
parent
0bb1804b
Changes
1
Show whitespace changes
Inline
Side-by-side
server/server.go
View file @
53ad2d31
...
...
@@ -190,7 +190,7 @@ func (s *AccountServer) Handler() http.Handler {
h
.
HandleFunc
(
"/api/resource/create"
,
s
.
withTx
(
s
.
handleCreateResources
))
h
.
HandleFunc
(
"/api/resource/move"
,
s
.
withTx
(
s
.
handleMoveResource
))
h
.
HandleFunc
(
"/api/resource/reset_password"
,
s
.
withTx
(
s
.
handleResetResourcePassword
))
h
.
HandleFunc
(
"/api/resource/email/add_alias"
,
s
.
withTx
(
s
.
handle
Delete
EmailAlias
))
h
.
HandleFunc
(
"/api/resource/email/add_alias"
,
s
.
withTx
(
s
.
handle
Add
EmailAlias
))
h
.
HandleFunc
(
"/api/resource/email/delete_alias"
,
s
.
withTx
(
s
.
handleDeleteEmailAlias
))
h
.
HandleFunc
(
"/api/recover_password"
,
s
.
withTx
(
s
.
handleRecoverPassword
))
return
h
...
...
Write
Preview
Supports
Markdown
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