- test of spid login;
This commit is contained in:
@@ -3,6 +3,7 @@ import { __, sprintf } from '@wordpress/i18n';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { classNames } from 'primereact/utils';
|
||||
import { isEmpty } from 'ramda';
|
||||
import { useParams } from 'react-router-dom';
|
||||
|
||||
// api
|
||||
import AuthenticationService from '../../service/authentication-service';
|
||||
@@ -23,6 +24,7 @@ const Registration = () => {
|
||||
const token = useStore().main.token();
|
||||
const [loading, setLoading] = useState(false);
|
||||
const errorMsgs = useRef(null);
|
||||
let { temp_token } = useParams();
|
||||
const {
|
||||
control,
|
||||
handleSubmit,
|
||||
@@ -73,6 +75,10 @@ const Registration = () => {
|
||||
}
|
||||
}, [token]);
|
||||
|
||||
useEffect(() => {
|
||||
console.log('temp_token', temp_token)
|
||||
}, [temp_token]);
|
||||
|
||||
return (
|
||||
<div className={classNames(['appPage', 'appPageLogin'])}>
|
||||
<div className="appPageLogin__wrapper">
|
||||
|
||||
Reference in New Issue
Block a user