aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjloup <jeanloup.jamet@gmail.com>2018-05-07 18:48:04 +0200
committerjloup <jeanloup.jamet@gmail.com>2018-05-07 18:48:04 +0200
commit84cce85f9f8a24d65c4abc9a544a691240269f59 (patch)
tree652425c6018f0840d6a31cccc4ddfc0cd5efcaa5
parent16e43cc77935a979c48e75f1ec8ed792952a4ae8 (diff)
downloadFront-84cce85f9f8a24d65c4abc9a544a691240269f59.tar.gz
Front-84cce85f9f8a24d65c4abc9a544a691240269f59.tar.zst
Front-84cce85f9f8a24d65c4abc9a544a691240269f59.zip
Create poloniex market_config at signup.
-rw-r--r--api/user.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/api/user.go b/api/user.go
index 9fd9479..c1d9d6c 100644
--- a/api/user.go
+++ b/api/user.go
@@ -81,6 +81,15 @@ func (q SignupQuery) Run() (interface{}, *Error) {
81 } 81 }
82 } 82 }
83 83
84 configMap := make(map[string]string)
85 configMap["key"] = ""
86 configMap["secret"] = ""
87
88 _, err = db.SetUserMarketConfig(newUser.Id, "poloniex", configMap)
89 if err != nil {
90 return nil, NewInternalError(err)
91 }
92
84 return SignResult{token}, nil 93 return SignResult{token}, nil
85} 94}
86 95