diff --git a/static/login.html b/static/login.html index 1446f54..3a415ba 100644 --- a/static/login.html +++ b/static/login.html @@ -13,15 +13,15 @@
- +
We'll never share your email with anyone else.
- +
- +
@@ -30,5 +30,6 @@
+ diff --git a/static/login.js b/static/login.js new file mode 100644 index 0000000..9e9cb15 --- /dev/null +++ b/static/login.js @@ -0,0 +1,15 @@ +const email = document.getElementById("email"); +const emailHelp = document.getElementById("emailHelp"); +const emailRegex = /^[^\s@]+@my\.utsa\.edu$/; +const password = document.getElementById("password"); +const passwordHelp = document.getElementById("passwordHelp"); +const passwordRegex = /^.{8,}$/; + +function showPass(){ + if(password.type === "password"){ + password.type = "text"; + } + else{ + password.type = "password"; + } +}