-
Notifications
You must be signed in to change notification settings - Fork 1
Authentication Enhancement #20
Comments
Perhaps we could even do some stuff client-side? Like checking if the email is a valid email before even sending a request to the backend? |
That's sort of what I was thinking. It might actually be easier than parsing the error messages. |
Maybe, the errors received from Firebase are designed to be parsed so it might not be too bad. |
We should discuss what input values will be considered valid for email, password, and student ID. |
@NilsG-S what do you mean? |
@asclines We're no longer using Firebase, so our password standards aren't already determined for us. We'll need to decide what passwords are acceptable. Student IDs should be easier, aren't they all the same length? |
@NilsG-S Student IDs will be easier unless we want to check that it is a legit Student ID but that might be better left to the admins to check. As for passwords, good point does @the-pat have an opinion? |
@asclines Yeah, the link I put in my comment has instructions for how to use regular expressions for email verification. I'm just not sure what emails we will be accepting. If we just use TTU email addresses it'll be relatively easy to make a regex that verifies them. I agree on letting the admins check whether student IDs are legit. |
Okay, so @mariots used his contacts to get some information on how TTU email addresses are structured. For the most part it's as easy as I thought. Basically they're dot separated names, which can include hyphens. If there is a name collision the middle initial is added. If there is a middle initial collision, the whole middle name is added. If there is a collision after that, we're not really sure what happens. Luckily the ending will always be @ttu.edu for students and administrators. The more serious issue is that there is a way for people to make a custom email address. If we want to handle all cases, we might have to use a general regex. |
would we really need much more validation than checking |
That would work for me |
Some general password policies are:
How do y'all feel about enforcing a password with at least one upper-case, lower-case, number, and special character? Also, I don't like the idea of a maximum password length, but the maximum BSON size is 16 megabytes. If we want to impose a maximum password length, I'd want to lower bound to be at least 64 characters. Thoughts? |
I have no real preference on this so I'll defer my opinion to @NilsG-S |
@the-pat What do you mean by special characters? Anything that isn't a word character (A-Z, a-z, 0-9, and underscore)? UPDATE |
In Progress:
inputChecking
tohandleBlur
Completed/Tabled:
Input Checking:
The text was updated successfully, but these errors were encountered: