Skip to content

Commit

Permalink
Merge pull request #10 from cwave-org/fix/design
Browse files Browse the repository at this point in the history
[fix] 숙대 메일 해제
  • Loading branch information
Nayeon-Ryu authored Dec 27, 2022
2 parents 13a92d4 + d33e98e commit 6c1b860
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ function App() {
updateProfile: (args) => user.updateProfile(args),
});

var email = user.email;
var emailIndex = email.indexOf("@") + 1;
var emailform = email.substring(emailIndex);
if (emailform !== "sookmyung.ac.kr") {
deleteUser(user);
setUserObj(null);
Swal.fire({
icon: "error",
confirmButtonColor: "#1f54c0",
text: "숙명 메일로만 로그인이 가능합니다.",
});
} else {
}
// var email = user.email;
// var emailIndex = email.indexOf("@") + 1;
// var emailform = email.substring(emailIndex);
// if (emailform !== "sookmyung.ac.kr") {
// deleteUser(user);
// setUserObj(null);
// Swal.fire({
// icon: "error",
// confirmButtonColor: "#1f54c0",
// text: "숙명 메일로만 로그인이 가능합니다.",
// });
// } else {
// }
} else {
setUserObj(null);
}
Expand Down

0 comments on commit 6c1b860

Please sign in to comment.