IO-994 Generic user handling

This commit is contained in:
Patrick Fic
2021-05-06 14:32:03 -07:00
parent e6d1e36b84
commit 786cf4b5db
10 changed files with 122 additions and 2 deletions

View File

@@ -219,6 +219,13 @@ export function* SetAuthLevelFromShopDetails({ payload }) {
);
yield put(setAuthlevel(authRecord[0] ? authRecord[0].authlevel : 0));
yield put(
updateUserDetailsSuccess(
authRecord[0]
? { validemail: authRecord[0].user.validemail }
: { validemail: false }
)
);
} catch (error) {
yield put(signInFailure(error.message));
}