clauth
clauth copied to clipboard
refactored new-user
This could be as simple as that unless I have misunderstood your intent.
I had indeed misunderstood, but the tests showed me the way. :-) New-user can accept either a map of attributes, or string parameters.
Same technique used for register-user: taking advantage of Clojure destructuring we can reduce function signatures.