From 31d94ae77008ccb37c2f0755247a982a7f4fbddc Mon Sep 17 00:00:00 2001 From: SleepWalker Date: Sat, 27 Feb 2016 10:36:06 +0200 Subject: [PATCH] =?UTF-8?q?jwt=20=D1=82=D0=BE=D0=BA=D0=B5=D0=BD=20=D0=BF?= =?UTF-8?q?=D0=BE=D1=81=D0=BB=D0=B5=20=D1=83=D1=81=D0=BF=D0=B5=D1=88=D0=BD?= =?UTF-8?q?=D0=BE=D0=B9=20=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=B8=D0=B7=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/auth/actions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/auth/actions.js b/src/components/auth/actions.js index 4388d97..6ed4d3a 100644 --- a/src/components/auth/actions.js +++ b/src/components/auth/actions.js @@ -77,11 +77,13 @@ export function activate({key = ''}) { '/api/signup/confirm', {key} ) - .then(() => { + .then((resp) => { dispatch(updateUser({ isActive: true })); + dispatch(authenticate(resp.jwt)); + dispatch(redirectToGoal()); }) .catch((resp) => {