-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
16주차 Assignment - 정희서 #7
base: main
Are you sure you want to change the base?
Conversation
<div> | ||
<div> | ||
<div> | ||
<input type="email" id="signupEmail" required placeholder="email" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
만약 placeholde에 스타일을 주고 싶으면 어떻게 하면 될까요~?
<button id="signInButton" type="submit">로그인</button> | ||
</div> | ||
<div> | ||
<button type="button" class="noneButton">회원가입</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좀더 좋은 이름이 없을까요!!!!!
const email = document.getElementById("signupEmail").value.trim(); | ||
const password = document.getElementById("signUpPassword").value; | ||
|
||
if (!email || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
input태그에 정규표현식으로 직접적으로 검사할 수도 있답니다
createUserWithEmailAndPassword(auth, email, password) | ||
.then((userCredential) => { | ||
const user = userCredential.user; | ||
console.log("회원가입 성공:", user); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
불필요한 콘솔은 꼭!!! 지워주세요
Description
Important content
Question
Reference
강의자료