jwt токен после успешной авторизации

This commit is contained in:
SleepWalker 2016-02-27 10:36:06 +02:00
parent 8b3e57925c
commit 31d94ae770

View File

@ -77,11 +77,13 @@ export function activate({key = ''}) {
'/api/signup/confirm', '/api/signup/confirm',
{key} {key}
) )
.then(() => { .then((resp) => {
dispatch(updateUser({ dispatch(updateUser({
isActive: true isActive: true
})); }));
dispatch(authenticate(resp.jwt));
dispatch(redirectToGoal()); dispatch(redirectToGoal());
}) })
.catch((resp) => { .catch((resp) => {