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
[user repo issue-id]
(issues/issue-events user repo issue-id (self-auth-params)))
[user repo issue-number]
(issues/issue-events user repo issue-number (self-auth-params)))
(defn create-label
[full-repo token]

View File

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

View File

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

View File

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