diff options
author | jloup <jloup@jloup.work> | 2018-05-13 23:07:26 +0200 |
---|---|---|
committer | jloup <jloup@jloup.work> | 2018-05-13 23:07:26 +0200 |
commit | 6bf174a95ba0f71abf25397316fc101405381cdf (patch) | |
tree | 4a7915347ea102b10701a0c1e04655d7d95f5df8 /cmd/web/js/signin.jsx | |
parent | d5b8f0ffbbde5fb8d41c3abb4b0969b962746b52 (diff) | |
download | Front-6bf174a95ba0f71abf25397316fc101405381cdf.tar.gz Front-6bf174a95ba0f71abf25397316fc101405381cdf.tar.zst Front-6bf174a95ba0f71abf25397316fc101405381cdf.zip |
Admin user token in frontend.
Diffstat (limited to 'cmd/web/js/signin.jsx')
-rw-r--r-- | cmd/web/js/signin.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/web/js/signin.jsx b/cmd/web/js/signin.jsx index e0e0f1d..5b3b661 100644 --- a/cmd/web/js/signin.jsx +++ b/cmd/web/js/signin.jsx | |||
@@ -18,7 +18,7 @@ class SigninForm extends React.Component { | |||
18 | } | 18 | } |
19 | 19 | ||
20 | this.displayMessage('OK', true); | 20 | this.displayMessage('OK', true); |
21 | this.props.onSuccess(data.token); | 21 | this.props.onSuccess(data.token, data.isAdmin); |
22 | 22 | ||
23 | }.bind(this)); | 23 | }.bind(this)); |
24 | e.preventDefault(); | 24 | e.preventDefault(); |