From 6bf174a95ba0f71abf25397316fc101405381cdf Mon Sep 17 00:00:00 2001
From: jloup <jloup@jloup.work>
Date: Sun, 13 May 2018 23:07:26 +0200
Subject: Admin user token in frontend.

---
 cmd/web/js/signin.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'cmd/web/js/signin.jsx')

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 {
       }
 
       this.displayMessage('OK', true);
-      this.props.onSuccess(data.token);
+      this.props.onSuccess(data.token, data.isAdmin);
 
     }.bind(this));
     e.preventDefault();
-- 
cgit v1.2.3

