@@ -12,7 +12,7 @@ import {useTheme} from "@emotion/react"; | |||||
// ==============================|| EVENT TABLE ||============================== // | // ==============================|| EVENT TABLE ||============================== // | ||||
export default function LoginGrid({userId}) { | |||||
export default function LoginGrid({u1}) { | |||||
// const navigate = useNavigate() | // const navigate = useNavigate() | ||||
const theme = useTheme(); | const theme = useTheme(); | ||||
const isMdOrLg = useMediaQuery(theme.breakpoints.up('md')); | const isMdOrLg = useMediaQuery(theme.breakpoints.up('md')); | ||||
@@ -64,7 +64,7 @@ export default function LoginGrid({userId}) { | |||||
getRowHeight={() => 'auto'} | getRowHeight={() => 'auto'} | ||||
doLoad={{ | doLoad={{ | ||||
url:GET_LOGIN_LOG_LIST, | url:GET_LOGIN_LOG_LIST, | ||||
params:{userId:userId} | |||||
params:{u1:u1} | |||||
}} | }} | ||||
/> | /> | ||||
</div> | </div> | ||||
@@ -230,7 +230,7 @@ const UserMaintainPage = () => { | |||||
HttpUtils.get({ | HttpUtils.get({ | ||||
url: `${GET_LOGIN_LOG_LIST}`, | url: `${GET_LOGIN_LOG_LIST}`, | ||||
params: { | params: { | ||||
userId: params.id | |||||
u1: params.id | |||||
}, | }, | ||||
onSuccess: function (response) { | onSuccess: function (response) { | ||||
// console.log(response) | // console.log(response) | ||||
@@ -408,7 +408,7 @@ const UserMaintainPage = () => { | |||||
</Box> | </Box> | ||||
<TabPanel value="1"> | <TabPanel value="1"> | ||||
<LoginGrid | <LoginGrid | ||||
userId = {params.id} | |||||
u1 = {params.id} | |||||
/> | /> | ||||
</TabPanel> | </TabPanel> | ||||
</TabContext> | </TabContext> | ||||
@@ -10,7 +10,7 @@ import {useTheme} from "@emotion/react"; | |||||
// ==============================|| EVENT TABLE ||============================== // | // ==============================|| EVENT TABLE ||============================== // | ||||
export default function LoginGrid({userId}) { | |||||
export default function LoginGrid({u1}) { | |||||
// const navigate = useNavigate() | // const navigate = useNavigate() | ||||
const theme = useTheme(); | const theme = useTheme(); | ||||
const isMdOrLg = useMediaQuery(theme.breakpoints.up('md')); | const isMdOrLg = useMediaQuery(theme.breakpoints.up('md')); | ||||
@@ -61,7 +61,7 @@ export default function LoginGrid({userId}) { | |||||
getRowHeight={() => 'auto'} | getRowHeight={() => 'auto'} | ||||
doLoad={{ | doLoad={{ | ||||
url:GET_LOGIN_LOG_LIST, | url:GET_LOGIN_LOG_LIST, | ||||
params:{userId:userId} | |||||
params:{u1:u1} | |||||
}} | }} | ||||
/> | /> | ||||
</div> | </div> | ||||
@@ -192,7 +192,7 @@ const UserMaintainPage_Individual = () => { | |||||
</TabPanel> | </TabPanel> | ||||
<TabPanel value="2"> | <TabPanel value="2"> | ||||
<LoginGrid | <LoginGrid | ||||
userId = {params.id} | |||||
u1 = {params.id} | |||||
/> | /> | ||||
</TabPanel> | </TabPanel> | ||||
</TabContext> | </TabContext> | ||||
@@ -12,7 +12,7 @@ import {GET_LOGIN_LOG_LIST } from "utils/ApiPathConst"; | |||||
// ==============================|| EVENT TABLE ||============================== // | // ==============================|| EVENT TABLE ||============================== // | ||||
export default function LoginGrid({userId}) { | |||||
export default function LoginGrid({u1}) { | |||||
// const navigate = useNavigate() | // const navigate = useNavigate() | ||||
const theme = useTheme(); | const theme = useTheme(); | ||||
const isMdOrLg = useMediaQuery(theme.breakpoints.up('md')); | const isMdOrLg = useMediaQuery(theme.breakpoints.up('md')); | ||||
@@ -63,7 +63,7 @@ export default function LoginGrid({userId}) { | |||||
getRowHeight={() => 'auto'} | getRowHeight={() => 'auto'} | ||||
doLoad={{ | doLoad={{ | ||||
url:GET_LOGIN_LOG_LIST, | url:GET_LOGIN_LOG_LIST, | ||||
params:{userId:userId} | |||||
params:{u1:u1} | |||||
}} | }} | ||||
/> | /> | ||||
</div> | </div> | ||||
@@ -261,7 +261,7 @@ const UserMaintainPage_Organization = () => { | |||||
</TabPanel> | </TabPanel> | ||||
<TabPanel value="2"> | <TabPanel value="2"> | ||||
<LoginGrid | <LoginGrid | ||||
userId = {params.id} | |||||
u1 = {params.id} | |||||
/> | /> | ||||
</TabPanel> | </TabPanel> | ||||
</TabContext> | </TabContext> | ||||
@@ -21,7 +21,7 @@ import { notifyActionError } from 'utils/CommonFunction'; | |||||
const CustomFormWizard = Loadable(lazy(() => import('./auth-forms/BusCustomFormWizard'))); | const CustomFormWizard = Loadable(lazy(() => import('./auth-forms/BusCustomFormWizard'))); | ||||
const AuthWrapper = Loadable(lazy(() => import('./AuthWrapperCustom'))); | const AuthWrapper = Loadable(lazy(() => import('./AuthWrapperCustom'))); | ||||
import axios from "axios"; | import axios from "axios"; | ||||
import { GET_USERNAME, POST_VERIFY_CAPTCHA } from "utils/ApiPathConst"; | |||||
import { POST_USERNAME, POST_VERIFY_CAPTCHA } from "utils/ApiPathConst"; | |||||
import {FormattedMessage, useIntl} from "react-intl"; | import {FormattedMessage, useIntl} from "react-intl"; | ||||
// import CustomFormWizard from './auth-forms/BusCustomFormWizard'; | // import CustomFormWizard from './auth-forms/BusCustomFormWizard'; | ||||
// import AuthWrapper from './AuthWrapperCustom'; | // import AuthWrapper from './AuthWrapperCustom'; | ||||
@@ -83,10 +83,8 @@ const BusRegister = () => { | |||||
}; | }; | ||||
const handleCheckUsername = async () => { | const handleCheckUsername = async () => { | ||||
const response = await axios.get(`${GET_USERNAME}`, { | |||||
params: { | |||||
username: username, | |||||
} | |||||
const response = await axios.post(`${POST_USERNAME}`, { | |||||
u1: username, | |||||
}) | }) | ||||
return Number(response.data[0]) === 1 | return Number(response.data[0]) === 1 | ||||
} | } | ||||
@@ -15,7 +15,7 @@ import { | |||||
Button, StepLabel, | Button, StepLabel, | ||||
} from '@mui/material'; | } from '@mui/material'; | ||||
import VisibilityIcon from '@mui/icons-material/Visibility'; | import VisibilityIcon from '@mui/icons-material/Visibility'; | ||||
import { GET_USERNAME, POST_VERIFY_CAPTCHA } from "utils/ApiPathConst"; | |||||
import { POST_USERNAME, POST_VERIFY_CAPTCHA } from "utils/ApiPathConst"; | |||||
// project import | // project import | ||||
import Loadable from 'components/Loadable'; | import Loadable from 'components/Loadable'; | ||||
@@ -83,10 +83,8 @@ const Register = () => { | |||||
}; | }; | ||||
const handleCheckUsername = async () => { | const handleCheckUsername = async () => { | ||||
const response = await axios.get(`${GET_USERNAME}`, { | |||||
params: { | |||||
username: username, | |||||
} | |||||
const response = await axios.post(`${POST_USERNAME}`, { | |||||
u1: username, | |||||
}) | }) | ||||
return Number(response.data[0]) === 1 | return Number(response.data[0]) === 1 | ||||
} | } | ||||
@@ -30,7 +30,7 @@ import * as yup from 'yup'; | |||||
import { strengthColorChi, strengthIndicator } from 'utils/password-strength'; | import { strengthColorChi, strengthIndicator } from 'utils/password-strength'; | ||||
// import {apiPath} from "auth/utils"; | // import {apiPath} from "auth/utils"; | ||||
import axios from "axios"; | import axios from "axios"; | ||||
import { POST_PUBLIC_USER_REGISTER, POST_CAPTCHA, GET_USERNAME, GET_USER_EMAIL } from "utils/ApiPathConst"; | |||||
import { POST_PUBLIC_USER_REGISTER, POST_CAPTCHA, POST_USERNAME, POST_USER_EMAIL } from "utils/ApiPathConst"; | |||||
// import * as HttpUtils from 'utils/HttpUtils'; | // import * as HttpUtils from 'utils/HttpUtils'; | ||||
import * as ComboData from "utils/ComboData"; | import * as ComboData from "utils/ComboData"; | ||||
@@ -116,10 +116,8 @@ const BusCustomFormWizard = (props) => { | |||||
const handleCheckUsername = async () => { | const handleCheckUsername = async () => { | ||||
if (values?.username) { | if (values?.username) { | ||||
const response = await axios.get(`${GET_USERNAME}`, { | |||||
params: { | |||||
username: values.username, | |||||
} | |||||
const response = await axios.post(`${POST_USERNAME}`, { | |||||
u1: values.username, | |||||
}) | }) | ||||
setCheckUsername((Number(response.data[0]) === 1)) | setCheckUsername((Number(response.data[0]) === 1)) | ||||
return Number(response.data[0]) === 1 | return Number(response.data[0]) === 1 | ||||
@@ -128,10 +126,8 @@ const BusCustomFormWizard = (props) => { | |||||
const handleCheckEmail = async () => { | const handleCheckEmail = async () => { | ||||
if (values?.email) { | if (values?.email) { | ||||
const response = await axios.get(`${GET_USER_EMAIL}`, { | |||||
params: { | |||||
email: values.email, | |||||
} | |||||
const response = await axios.post(`${POST_USER_EMAIL}`, { | |||||
e1: values.email, | |||||
}) | }) | ||||
setCheckEmail((Number(response.data[0]) === 1)) | setCheckEmail((Number(response.data[0]) === 1)) | ||||
return Number(response.data[0]) === 1 | return Number(response.data[0]) === 1 | ||||
@@ -25,7 +25,7 @@ import * as yup from 'yup'; | |||||
import { strengthColorChi, strengthIndicator } from 'utils/password-strength'; | import { strengthColorChi, strengthIndicator } from 'utils/password-strength'; | ||||
// import {apiPath} from "auth/utils"; | // import {apiPath} from "auth/utils"; | ||||
import axios from "axios"; | import axios from "axios"; | ||||
import { GET_USERNAME, GET_USER_EMAIL, POST_CAPTCHA, POST_PUBLIC_USER_REGISTER } from "utils/ApiPathConst"; | |||||
import { POST_USERNAME, POST_USER_EMAIL, POST_CAPTCHA, POST_PUBLIC_USER_REGISTER } from "utils/ApiPathConst"; | |||||
// import * as HttpUtils from 'utils/HttpUtils'; | // import * as HttpUtils from 'utils/HttpUtils'; | ||||
import * as ComboData from "utils/ComboData"; | import * as ComboData from "utils/ComboData"; | ||||
@@ -123,10 +123,8 @@ const CustomFormWizard = (props) => { | |||||
const handleCheckUsername = async () => { | const handleCheckUsername = async () => { | ||||
if (values?.username) { | if (values?.username) { | ||||
const response = await axios.get(`${GET_USERNAME}`, { | |||||
params: { | |||||
username: values.username, | |||||
} | |||||
const response = await axios.post(`${POST_USERNAME}`, { | |||||
u1: values.username, | |||||
}) | }) | ||||
setCheckUsername((Number(response.data[0]) === 1)) | setCheckUsername((Number(response.data[0]) === 1)) | ||||
return Number(response.data[0]) === 1 | return Number(response.data[0]) === 1 | ||||
@@ -135,10 +133,8 @@ const CustomFormWizard = (props) => { | |||||
const handleCheckEmail = async () => { | const handleCheckEmail = async () => { | ||||
if (values?.email) { | if (values?.email) { | ||||
const response = await axios.get(`${GET_USER_EMAIL}`, { | |||||
params: { | |||||
email: values.email, | |||||
} | |||||
const response = await axios.post(`${POST_USER_EMAIL}`, { | |||||
e1: values.email, | |||||
}) | }) | ||||
setCheckEmail((Number(response.data[0]) === 1)) | setCheckEmail((Number(response.data[0]) === 1)) | ||||
return Number(response.data[0]) === 1 | return Number(response.data[0]) === 1 | ||||
@@ -21,7 +21,7 @@ import { useFormik, FormikProvider } from 'formik'; | |||||
import * as yup from 'yup'; | import * as yup from 'yup'; | ||||
import axios from "axios"; | import axios from "axios"; | ||||
import { POST_IAMSMART_USER_REGISTER, POST_CAPTCHA, GET_USER_EMAIL } from "utils/ApiPathConst"; | |||||
import { POST_IAMSMART_USER_REGISTER, POST_CAPTCHA, POST_USER_EMAIL } from "utils/ApiPathConst"; | |||||
import * as ComboData from "utils/ComboData"; | import * as ComboData from "utils/ComboData"; | ||||
@@ -185,10 +185,8 @@ const CustomFormWizard = (props) => { | |||||
const handleCheckEmail = async () => { | const handleCheckEmail = async () => { | ||||
if (values?.email) { | if (values?.email) { | ||||
const response = await axios.get(`${GET_USER_EMAIL}`, { | |||||
params: { | |||||
email: values.email, | |||||
} | |||||
const response = await axios.post(`${POST_USER_EMAIL}`, { | |||||
e1: values.email, | |||||
}) | }) | ||||
setCheckEmail((Number(response.data[0]) === 1)) | setCheckEmail((Number(response.data[0]) === 1)) | ||||
return Number(response.data[0]) === 1 | return Number(response.data[0]) === 1 | ||||
@@ -88,8 +88,8 @@ export const GET_COMBO = apiPath+'/combo-data'; | |||||
//register | //register | ||||
export const POST_PUBLIC_USER_REGISTER = apiPath+'/user/register'; | export const POST_PUBLIC_USER_REGISTER = apiPath+'/user/register'; | ||||
export const POST_IAMSMART_USER_REGISTER = apiPath+'/user/smart/register'; | export const POST_IAMSMART_USER_REGISTER = apiPath+'/user/smart/register'; | ||||
export const GET_USERNAME = apiPath+'/user/username'; | |||||
export const GET_USER_EMAIL = apiPath+'/user/email'; | |||||
export const POST_USERNAME = apiPath+'/user/checkU1'; | |||||
export const POST_USER_EMAIL = apiPath+'/user/checkE1'; | |||||
export const GET_ID = apiPath+'/user/verifyID'; | export const GET_ID = apiPath+'/user/verifyID'; | ||||
export const GET_VERIFY_USER_ACCOUNT = apiPath+'/user/verifyEmail'; | export const GET_VERIFY_USER_ACCOUNT = apiPath+'/user/verifyEmail'; | ||||
export const GET_FORGOT_PASSWORD_VERIFY_USER_ACCOUNT = apiPath+'/user/verifyForgotPasswordEmail'; | export const GET_FORGOT_PASSWORD_VERIFY_USER_ACCOUNT = apiPath+'/user/verifyForgotPasswordEmail'; | ||||