Commit 53ad2d31 authored by ale's avatar ale
Browse files

Fix action for /api/resource/email/add_alias

Previously it was deleting aliases instead of adding them.
parent 0bb1804b
...@@ -190,7 +190,7 @@ func (s *AccountServer) Handler() http.Handler { ...@@ -190,7 +190,7 @@ func (s *AccountServer) Handler() http.Handler {
h.HandleFunc("/api/resource/create", s.withTx(s.handleCreateResources)) h.HandleFunc("/api/resource/create", s.withTx(s.handleCreateResources))
h.HandleFunc("/api/resource/move", s.withTx(s.handleMoveResource)) h.HandleFunc("/api/resource/move", s.withTx(s.handleMoveResource))
h.HandleFunc("/api/resource/reset_password", s.withTx(s.handleResetResourcePassword)) h.HandleFunc("/api/resource/reset_password", s.withTx(s.handleResetResourcePassword))
h.HandleFunc("/api/resource/email/add_alias", s.withTx(s.handleDeleteEmailAlias)) h.HandleFunc("/api/resource/email/add_alias", s.withTx(s.handleAddEmailAlias))
h.HandleFunc("/api/resource/email/delete_alias", s.withTx(s.handleDeleteEmailAlias)) h.HandleFunc("/api/resource/email/delete_alias", s.withTx(s.handleDeleteEmailAlias))
h.HandleFunc("/api/recover_password", s.withTx(s.handleRecoverPassword)) h.HandleFunc("/api/recover_password", s.withTx(s.handleRecoverPassword))
return h return h
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment