mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-05 09:17:39 +02:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1b9b20e97 | ||
|
|
75c0cdb5f9 |
@@ -54,7 +54,7 @@ const Validate = () => {
|
|||||||
) : (
|
) : (
|
||||||
<ModalUi showHeader={false} isOpen={true} showClose={false}>
|
<ModalUi showHeader={false} isOpen={true} showClose={false}>
|
||||||
<div className="flex flex-col justify-center items-center py-4 md:py-5 gap-5">
|
<div className="flex flex-col justify-center items-center py-4 md:py-5 gap-5">
|
||||||
<p className="text-xl font-medium">{this("session-expired")}</p>
|
<p className="text-xl font-medium">{t("session-expired")}</p>
|
||||||
<button onClick={handleLoginBtn} className="op-btn op-btn-neutral">
|
<button onClick={handleLoginBtn} className="op-btn op-btn-neutral">
|
||||||
{t("login")}
|
{t("login")}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { cloudServerUrl, replaceMailVaribles } from '../../Utils.js';
|
import { cloudServerUrl, mailTemplate, replaceMailVaribles } from '../../Utils.js';
|
||||||
const serverUrl = cloudServerUrl; //process.env.SERVER_URL;
|
const serverUrl = cloudServerUrl; //process.env.SERVER_URL;
|
||||||
const appId = process.env.APP_ID;
|
const appId = process.env.APP_ID;
|
||||||
async function deductcount(docsCount, extUserId) {
|
async function deductcount(docsCount, extUserId) {
|
||||||
@@ -244,7 +244,7 @@ export default async function createBatchDocs(request) {
|
|||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
if (request?.user) {
|
if (request?.user) {
|
||||||
return await batchQuery(request.user.id, Documents, Ip, parseConfig, '', type, publicUrl);
|
return await batchQuery(request.user.id, Documents, Ip, parseConfig, type, publicUrl);
|
||||||
} else {
|
} else {
|
||||||
throw new Parse.Error(Parse.Error.INVALID_SESSION_TOKEN, 'User is not authenticated.');
|
throw new Parse.Error(Parse.Error.INVALID_SESSION_TOKEN, 'User is not authenticated.');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user