mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-12 20:57:40 +02:00
fix: ip address missing of document originator using public-sign
This commit is contained in:
@@ -1591,6 +1591,17 @@ function PdfRequestFiles(props) {
|
||||
alert("Please Enter OTP!");
|
||||
}
|
||||
};
|
||||
const handleCloseOtp = () => {
|
||||
setIsPublicContact(false);
|
||||
setLoading(false);
|
||||
setIsOtp(false);
|
||||
setOtp();
|
||||
setContact({
|
||||
name: "",
|
||||
email: "",
|
||||
phone: ""
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<DndProvider backend={HTML5Backend}>
|
||||
@@ -1720,16 +1731,18 @@ function PdfRequestFiles(props) {
|
||||
|
||||
<ModalUi
|
||||
isOpen={isPublicContact}
|
||||
title={"Contact Details"}
|
||||
title={isOtp ? "Verify email" : "Contact Details"}
|
||||
handleClose={() => {
|
||||
setIsPublicContact(false);
|
||||
handleCloseOtp();
|
||||
}}
|
||||
>
|
||||
<div className="h-full p-[20px]">
|
||||
{isOtp ? (
|
||||
<form onSubmit={VerifyOTP}>
|
||||
<div className="flex flex-col gap-2">
|
||||
<span>You will get a OTP via Email</span>
|
||||
<span>
|
||||
You will get a verification code via email
|
||||
</span>
|
||||
<label className="op-input op-input-bordered flex items-center gap-2 ">
|
||||
<input
|
||||
type="number"
|
||||
@@ -1748,16 +1761,7 @@ function PdfRequestFiles(props) {
|
||||
<button
|
||||
className="op-btn op-btn-ghost"
|
||||
onClick={() => {
|
||||
// document.getElementById("my_modal").close();
|
||||
setIsPublicContact(false);
|
||||
setLoading(false);
|
||||
setIsOtp(false);
|
||||
setOtp();
|
||||
setContact({
|
||||
name: "",
|
||||
email: "",
|
||||
phone: ""
|
||||
});
|
||||
handleCloseOtp();
|
||||
}}
|
||||
>
|
||||
Cancel
|
||||
@@ -1841,8 +1845,7 @@ function PdfRequestFiles(props) {
|
||||
<button
|
||||
className="op-btn op-btn-ghost"
|
||||
onClick={() => {
|
||||
// document.getElementById("my_modal").close();
|
||||
setIsPublicContact(false);
|
||||
handleCloseOtp();
|
||||
}}
|
||||
>
|
||||
Close
|
||||
|
||||
Reference in New Issue
Block a user