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',
{key}
)
.then(() => {
.then((resp) => {
dispatch(updateUser({
isActive: true
}));
dispatch(authenticate(resp.jwt));
dispatch(redirectToGoal());
})
.catch((resp) => {