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(
|
||||
(config) => {
|
||||
const currentLanguage = i18next.language || "en";
|
||||
if (config.data?.email) {
|
||||
config.data.email = config.data.email.toLowerCase();
|
||||
}
|
||||
|
||||
const { authToken } = store.getState().auth;
|
||||
|
||||
|
||||
@@ -65,6 +65,7 @@ const credentials = joi.object({
|
||||
.string()
|
||||
.trim()
|
||||
.email({ tlds: { allow: false } })
|
||||
.lowercase()
|
||||
.messages({
|
||||
"string.empty": "Email is required",
|
||||
"string.email": "Must be a valid email address",
|
||||
|
||||
Reference in new issue
Block a user