mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-01-01 17:52:10 +05:30
Добавил костыльчик, что бы после реги юзер тоже был якобы авторизированным
This commit is contained in:
parent
a94ddaf131
commit
df22b17457
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user