Skip to content

Commit

Permalink
turned on email.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Aatmaj-Zephyr committed Dec 11, 2023
1 parent 35cff04 commit 65b919e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion twoFactorAuth.html
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 65b919e

Please sign in to comment.