don't keep user password in returned user profile
stops the password from being transmitted to the client in the user profile sent there
This commit is contained in:
parent
6d0fe057d0
commit
cf34a72bd8
|
@ -9,7 +9,8 @@
|
||||||
(defn validate-credentials
|
(defn validate-credentials
|
||||||
[username password]
|
[username password]
|
||||||
(if (using-authorization?)
|
(if (using-authorization?)
|
||||||
(->> (config/get :users)
|
(as-> (config/get :users) x
|
||||||
(filter #(and (= username (:username %))
|
(filter #(and (= username (:username %))
|
||||||
(= password (:password %))))
|
(= password (:password %))) x)
|
||||||
(first))))
|
(first x)
|
||||||
|
(dissoc x :password))))
|
||||||
|
|
Loading…
Reference in a new issue