News for hackers. Stuff that matters.
Re:Show HN: DataTau (HN clone for data science) has been dow... by thegurus on Sunday June 23, 2019 @03:31PM (#20258144)
hahaha you're right! we've just setup the ^[a-zA-Z0-9_.-]+$ regex for both username and password. Thanks for the pen-testing
Re:Show HN: DataTau (HN clone for data science) has been dow... by bonyt on Sunday June 23, 2019 @03:42PM (#20258210)
Not sure this is ideal either, it rejected the first password my password manager generated. Password should probably just be anything other than all whitespace, no? Maybe a length requirement.
Re:Show HN: DataTau (HN clone for data science) has been dow... by tomsmeding on Sunday June 23, 2019 @03:39PM (#20258189)
Do you really want that regex for passwords also? Am I not allowed to put interesting characters in my password?
Re:Show HN: DataTau (HN clone for data science) has been dow... by thegurus on Sunday June 23, 2019 @03:45PM (#20258223)
Sorry guys, do you like ^[A-Za-z0-9@#$%^&+=]+$ for your passwords?
Re:Show HN: DataTau (HN clone for data science) has been dow... by BlackLotus89 on Sunday June 23, 2019 @04:10PM (#20258364)
You should not regex check your passwords at all. Just check !="" and maybe check the length There is no reason why you should limit symbols for passwords.
Re:Show HN: DataTau (HN clone for data science) has been dow... by jnbiche on Sunday June 23, 2019 @07:29PM (#20259420)
This times 1000. Why would you regex check your password? Check for empty string and length and be done with it.
Re:Show HN: DataTau (HN clone for data science) has been dow... by thegurus on Monday June 24, 2019 @02:11AM (#20260909)
You are right. Django default auth backend handles this perfectly, but we wanted that functionality of login + signup in the same form, and that signup autofill in case login fail, so made our custom auth views and screw up some things (like username and password validation and going back to previous page after login)