Do not expose user's email addresses to client side, rename parameter

This commit is contained in:
Teemu Patja 2017-02-22 19:46:11 +02:00
parent c2065fa973
commit b868996308
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
4 changed files with 5 additions and 4 deletions

View File

@ -186,8 +186,8 @@
(defn get-issue-events (defn get-issue-events
[user repo issue-id] [user repo issue-number]
(issues/issue-events user repo issue-id (self-auth-params))) (issues/issue-events user repo issue-number (self-auth-params)))
(defn create-label (defn create-label
[full-repo token] [full-repo token]

View File

@ -108,7 +108,8 @@
:current-user user :current-user user
(ok {:user (dissoc (ok {:user (dissoc
(users/get-user (:id user)) (users/get-user (:id user))
:token)})) :token
:email)}))
(POST "/address" [] (POST "/address" []
:auth-rules authenticated? :auth-rules authenticated?
:body-params [user-id :- Long, address :- String] :body-params [user-id :- Long, address :- String]

View File

@ -129,6 +129,7 @@
(stop-scheduler) (stop-scheduler)
(log/debug "Starting scheduler thread") (log/debug "Starting scheduler thread")
(while (get-thread-by-name scheduler-thread-name) (while (get-thread-by-name scheduler-thread-name)
(log/debug "Waiting")
(Thread/sleep 1)) (Thread/sleep 1))
(every ms tasks)) (every ms tasks))

View File

@ -179,7 +179,6 @@
(rf/dispatch [:load-bounties])) (rf/dispatch [:load-bounties]))
(defn load-data [] (defn load-data []
(println "load-data")
(load-issues) (load-issues)
(load-user)) (load-user))