Bladeren bron

sraa update

CR003
Alex Cheung 1 jaar geleden
bovenliggende
commit
8ec89dec0f
12 gewijzigde bestanden met toevoegingen van 31 en 45 verwijderingen
  1. +2
    -2
      src/pages/User/DetailPage/LoginGrid.js
  2. +2
    -2
      src/pages/User/DetailPage/index.js
  3. +2
    -2
      src/pages/User/DetailsPage_Individual/LoginGrid.js
  4. +1
    -1
      src/pages/User/DetailsPage_Individual/index.js
  5. +2
    -2
      src/pages/User/DetailsPage_Organization/LoginGrid.js
  6. +1
    -1
      src/pages/User/DetailsPage_Organization/index.js
  7. +3
    -5
      src/pages/authentication/BusRegister.js
  8. +3
    -5
      src/pages/authentication/Register.js
  9. +5
    -9
      src/pages/authentication/auth-forms/BusCustomFormWizard.js
  10. +5
    -9
      src/pages/authentication/auth-forms/CustomFormWizard.js
  11. +3
    -5
      src/pages/authentication/auth-forms/IAmSmartFormWizard.js
  12. +2
    -2
      src/utils/ApiPathConst.js

+ 2
- 2
src/pages/User/DetailPage/LoginGrid.js Bestand weergeven

@@ -12,7 +12,7 @@ import {useTheme} from "@emotion/react";

// ==============================|| EVENT TABLE ||============================== //

export default function LoginGrid({userId}) {
export default function LoginGrid({u1}) {
// const navigate = useNavigate()
const theme = useTheme();
const isMdOrLg = useMediaQuery(theme.breakpoints.up('md'));
@@ -64,7 +64,7 @@ export default function LoginGrid({userId}) {
getRowHeight={() => 'auto'}
doLoad={{
url:GET_LOGIN_LOG_LIST,
params:{userId:userId}
params:{u1:u1}
}}
/>
</div>


+ 2
- 2
src/pages/User/DetailPage/index.js Bestand weergeven

@@ -230,7 +230,7 @@ const UserMaintainPage = () => {
HttpUtils.get({
url: `${GET_LOGIN_LOG_LIST}`,
params: {
userId: params.id
u1: params.id
},
onSuccess: function (response) {
// console.log(response)
@@ -408,7 +408,7 @@ const UserMaintainPage = () => {
</Box>
<TabPanel value="1">
<LoginGrid
userId = {params.id}
u1 = {params.id}
/>
</TabPanel>
</TabContext>


+ 2
- 2
src/pages/User/DetailsPage_Individual/LoginGrid.js Bestand weergeven

@@ -10,7 +10,7 @@ import {useTheme} from "@emotion/react";

// ==============================|| EVENT TABLE ||============================== //

export default function LoginGrid({userId}) {
export default function LoginGrid({u1}) {
// const navigate = useNavigate()
const theme = useTheme();
const isMdOrLg = useMediaQuery(theme.breakpoints.up('md'));
@@ -61,7 +61,7 @@ export default function LoginGrid({userId}) {
getRowHeight={() => 'auto'}
doLoad={{
url:GET_LOGIN_LOG_LIST,
params:{userId:userId}
params:{u1:u1}
}}
/>
</div>


+ 1
- 1
src/pages/User/DetailsPage_Individual/index.js Bestand weergeven

@@ -192,7 +192,7 @@ const UserMaintainPage_Individual = () => {
</TabPanel>
<TabPanel value="2">
<LoginGrid
userId = {params.id}
u1 = {params.id}
/>
</TabPanel>
</TabContext>


+ 2
- 2
src/pages/User/DetailsPage_Organization/LoginGrid.js Bestand weergeven

@@ -12,7 +12,7 @@ import {GET_LOGIN_LOG_LIST } from "utils/ApiPathConst";

// ==============================|| EVENT TABLE ||============================== //

export default function LoginGrid({userId}) {
export default function LoginGrid({u1}) {
// const navigate = useNavigate()
const theme = useTheme();
const isMdOrLg = useMediaQuery(theme.breakpoints.up('md'));
@@ -63,7 +63,7 @@ export default function LoginGrid({userId}) {
getRowHeight={() => 'auto'}
doLoad={{
url:GET_LOGIN_LOG_LIST,
params:{userId:userId}
params:{u1:u1}
}}
/>
</div>


+ 1
- 1
src/pages/User/DetailsPage_Organization/index.js Bestand weergeven

@@ -261,7 +261,7 @@ const UserMaintainPage_Organization = () => {
</TabPanel>
<TabPanel value="2">
<LoginGrid
userId = {params.id}
u1 = {params.id}
/>
</TabPanel>
</TabContext>


+ 3
- 5
src/pages/authentication/BusRegister.js Bestand weergeven

@@ -21,7 +21,7 @@ import { notifyActionError } from 'utils/CommonFunction';
const CustomFormWizard = Loadable(lazy(() => import('./auth-forms/BusCustomFormWizard')));
const AuthWrapper = Loadable(lazy(() => import('./AuthWrapperCustom')));
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 CustomFormWizard from './auth-forms/BusCustomFormWizard';
// import AuthWrapper from './AuthWrapperCustom';
@@ -83,10 +83,8 @@ const BusRegister = () => {
};

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
}


+ 3
- 5
src/pages/authentication/Register.js Bestand weergeven

@@ -15,7 +15,7 @@ import {
Button, StepLabel,
} from '@mui/material';
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
import Loadable from 'components/Loadable';
@@ -83,10 +83,8 @@ const Register = () => {
};

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
}


+ 5
- 9
src/pages/authentication/auth-forms/BusCustomFormWizard.js Bestand weergeven

@@ -30,7 +30,7 @@ import * as yup from 'yup';
import { strengthColorChi, strengthIndicator } from 'utils/password-strength';
// import {apiPath} from "auth/utils";
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 ComboData from "utils/ComboData";

@@ -116,10 +116,8 @@ const BusCustomFormWizard = (props) => {

const handleCheckUsername = async () => {
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))
return Number(response.data[0]) === 1
@@ -128,10 +126,8 @@ const BusCustomFormWizard = (props) => {

const handleCheckEmail = async () => {
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))
return Number(response.data[0]) === 1


+ 5
- 9
src/pages/authentication/auth-forms/CustomFormWizard.js Bestand weergeven

@@ -25,7 +25,7 @@ import * as yup from 'yup';
import { strengthColorChi, strengthIndicator } from 'utils/password-strength';
// import {apiPath} from "auth/utils";
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 ComboData from "utils/ComboData";

@@ -123,10 +123,8 @@ const CustomFormWizard = (props) => {

const handleCheckUsername = async () => {
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))
return Number(response.data[0]) === 1
@@ -135,10 +133,8 @@ const CustomFormWizard = (props) => {

const handleCheckEmail = async () => {
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))
return Number(response.data[0]) === 1


+ 3
- 5
src/pages/authentication/auth-forms/IAmSmartFormWizard.js Bestand weergeven

@@ -21,7 +21,7 @@ import { useFormik, FormikProvider } from 'formik';
import * as yup from 'yup';

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";

@@ -185,10 +185,8 @@ const CustomFormWizard = (props) => {

const handleCheckEmail = async () => {
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))
return Number(response.data[0]) === 1


+ 2
- 2
src/utils/ApiPathConst.js Bestand weergeven

@@ -88,8 +88,8 @@ export const GET_COMBO = apiPath+'/combo-data';
//register
export const POST_PUBLIC_USER_REGISTER = apiPath+'/user/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_VERIFY_USER_ACCOUNT = apiPath+'/user/verifyEmail';
export const GET_FORGOT_PASSWORD_VERIFY_USER_ACCOUNT = apiPath+'/user/verifyForgotPasswordEmail';


Laden…
Annuleren
Opslaan