1. Integerated DashBoard, #97

Merged
Marikannan merged 31 commits from v3-wall into main 2025-06-04 12:09:09 +00:00
3 changed files with 4 additions and 11 deletions
Showing only changes of commit 4d738d576a - Show all commits

View File

@ -41,7 +41,6 @@ const UserAuth: React.FC = () => {
try { try {
const res = await signInApi(email, password, organization, fingerprint); const res = await signInApi(email, password, organization, fingerprint);
console.log('res: ', res);
if (res.message.message === "login successfull") { if (res.message.message === "login successfull") {
setError(""); setError("");
setOrganization(organization); setOrganization(organization);

View File

@ -1,18 +1,18 @@
let url_Backend_dwinzo = `http://${process.env.REACT_APP_SERVER_REST_API_BASE_URL}`; let url_Backend_dwinzo = `http://${process.env.REACT_APP_SERVER_REST_API_BASE_URL}`;
export const signInApi = async (Email: string,Password: Object,organization: Object,fingerprint:any) => { export const signInApi = async (Email: string, Password: Object, organization: Object, fingerprint: any) => {
try { try {
const response = await fetch(`${url_Backend_dwinzo}/api/V1/Auth/login`, { const response = await fetch(`${url_Backend_dwinzo}/api/V1/Auth/login`, {
method: "POST", method: "POST",
headers: {"Content-Type": "application/json",}, headers: { "Content-Type": "application/json", },
body: JSON.stringify({ Email, Password, organization,fingerprint}), body: JSON.stringify({ Email, Password, organization, fingerprint }),
}); });
const result = await response.json(); const result = await response.json();
return result; return result;
} catch (error) { } catch (error) {
echo.error("Failed to sign-in"); echo.error("Failed to sign-in");
if (error instanceof Error) { if (error instanceof Error) {
return { error: error.message }; return { error: error.message };
} else { } else {

6
package-lock.json generated
View File

@ -1,6 +0,0 @@
{
"name": "Dwinzo_dev",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}