api updates (#2335)
commit1295c31ec522b8b34e49dcc189423434f6a13747
authorBrady Miller <brady.g.miller@gmail.com>
Fri, 29 Mar 2019 00:52:09 +0000 (28 17:52 -0700)
committerGitHub <noreply@github.com>
Fri, 29 Mar 2019 00:52:09 +0000 (28 17:52 -0700)
tree985337ce7c9724b7124f4a00dfcd346971d2697c
parent0ed27f1c1ddb256381fe8a171b60ce0d97e0ffdc
api updates (#2335)

- used a cryptographically secure method to randomly create tokens
- Concatenated api and site_id before running bin2hex on them (to be consistent with the way it is unwrapped with hex2bin).
rest_controllers/AuthRestController.php