User email case sensitivity on login.
This commit is contained in:
@@ -270,7 +270,7 @@ export function* SetAuthLevelFromShopDetails({ payload }) {
|
|||||||
factory.client(payload.imexshopid);
|
factory.client(payload.imexshopid);
|
||||||
|
|
||||||
const authRecord = payload.associations.filter(
|
const authRecord = payload.associations.filter(
|
||||||
(a) => a.useremail === userEmail
|
(a) => a.useremail.toLowerCase() === userEmail.toLowerCase()
|
||||||
);
|
);
|
||||||
|
|
||||||
yield put(setAuthlevel(authRecord[0] ? authRecord[0].authlevel : 0));
|
yield put(setAuthlevel(authRecord[0] ? authRecord[0].authlevel : 0));
|
||||||
|
|||||||
Reference in New Issue
Block a user