X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=cmd%2Fweb%2Fjs%2Fsignin.jsx;h=5b3b661f4a7be7373e60bf29e30201e5968b343c;hb=6bf174a95ba0f71abf25397316fc101405381cdf;hp=bff497ec4c4a58a220f5cd0e46dd21c34625035d;hpb=989fb5c7dbba174f54f3ae69df788d6685fff46b;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FFront.git diff --git a/cmd/web/js/signin.jsx b/cmd/web/js/signin.jsx index bff497e..5b3b661 100644 --- a/cmd/web/js/signin.jsx +++ b/cmd/web/js/signin.jsx @@ -18,7 +18,7 @@ class SigninForm extends React.Component { } this.displayMessage('OK', true); - this.props.onSuccess(data.token); + this.props.onSuccess(data.token, data.isAdmin); }.bind(this)); e.preventDefault(); @@ -44,7 +44,7 @@ class SigninForm extends React.Component { var cName = classNames('form-message', {'hidden': this.state.hideMsg, 'message-ok': this.state.msgOk}); return (
-
+