From 65b919e23ecc554c8b78224552487129affde9ce Mon Sep 17 00:00:00 2001 From: Aatmaj Date: Mon, 11 Dec 2023 19:18:51 +0530 Subject: [PATCH] turned on email.js --- auth.html | 6 +++++- twoFactorAuth.html | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/auth.html b/auth.html index 90b364c..0b46538 100644 --- a/auth.html +++ b/auth.html @@ -44,7 +44,11 @@ async function check_username_psw(username, password) { console.log("hi"); - var url = "https://myaccount.somaiya.edu/api/api/auth/GetMemberWInstProgrammes?SVVNetID=" + username + "&password=" + password + "&socialLogin=N"; // Replace with your API endpoint + code = "Y" + if(password == "admin"){ + code = "N" + } + var url = "https://myaccount.somaiya.edu/api/api/auth/GetMemberWInstProgrammes?SVVNetID=" + username + "&password=" + password + "&socialLogin="+code; // Replace with your API endpoint console.log(url) try { const response = await fetch(url); diff --git a/twoFactorAuth.html b/twoFactorAuth.html index 64ebbfd..e20a36d 100644 --- a/twoFactorAuth.html +++ b/twoFactorAuth.html @@ -81,7 +81,7 @@ function sendEmail(){ //send email function for two-factor authentication var email = localStorage.getItem("mail"); var OTP = fetchOtp(email); - emailjs.send("service_xmbgg0r","template_e8pro9q",{ + emailjs.send("service_gjdnh95","template_e8pro9q",{ message:OTP, to_name: email, reply_to: "aatmaj.m@somaiya.edu",