removed axios interceptor change
This commit is contained in:
1 parent
dce461b586
commit
f001419a5b
2 files changed
+1
-3
No files matched your search
@@ -27,9 +27,6 @@ class NetworkService {
|
|||||||
this.axiosInstance.interceptors.request.use(
|
this.axiosInstance.interceptors.request.use(
|
||||||
(config) => {
|
(config) => {
|
||||||
const currentLanguage = i18next.language || "en";
|
const currentLanguage = i18next.language || "en";
|
||||||
if (config.data?.email) {
|
|
||||||
config.data.email = config.data.email.toLowerCase();
|
|
||||||
}
|
|
||||||
|
|
||||||
const { authToken } = store.getState().auth;
|
const { authToken } = store.getState().auth;
|
||||||
|
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ const credentials = joi.object({
|
|||||||
.string()
|
.string()
|
||||||
.trim()
|
.trim()
|
||||||
.email({ tlds: { allow: false } })
|
.email({ tlds: { allow: false } })
|
||||||
|
.lowercase()
|
||||||
.messages({
|
.messages({
|
||||||
"string.empty": "Email is required",
|
"string.empty": "Email is required",
|
||||||
"string.email": "Must be a valid email address",
|
"string.email": "Must be a valid email address",
|
||||||
|
|||||||
Reference in new issue
Block a user