Добавил костыльчик, что бы после реги юзер тоже был якобы авторизированным

This commit is contained in:
SleepWalker 2016-02-13 17:34:29 +02:00
parent a94ddaf131
commit df22b17457

View File

@ -50,6 +50,11 @@ export function register({
{email, username, password, rePassword, rulesAgreement} {email, username, password, rePassword, rulesAgreement}
) )
.then(() => { .then(() => {
dispatch(updateUser({
username,
email,
isGuest: false
}));
dispatch(routeActions.push('/activation')); dispatch(routeActions.push('/activation'));
}) })
.catch((resp) => { .catch((resp) => {