Post Reply Cannot Login thru Chrome
43373 cr points
Send Message: Send PM GB Post
33 / M / Canada Eh?
Online
Posted 6/6/16
When I try to login to my account through the Chrome web browser, I get an "invalid username or email" error. I can log in fine through firefox and IE, but I cannot log in when using chrome. This problem is recent as I was able to login on Sunday, but now it's not working at all.
474 cr points
Send Message: Send PM GB Post
21 / M
Offline
Posted 6/6/16 , edited 6/6/16
Clear your browser data, cookies, and history.
21024 cr points
Send Message: Send PM GB Post
32
Offline
Posted 6/6/16 , edited 6/6/16
Just wanted to second the issue with Chrome.

Google Chrome dev channel version: 53.0.2756.0 dev

Developer console reports an issue with a HTML5 validation regex.
Pattern attribute value ([a-zA-Z0-9\-\_]{3,29})|(.+\@.+\..+) is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /([a-zA-Z0-9\-\_]{3,29})|(.+\@.+\..+)/: Invalid escape

No need to escape underscore or at sign inside or outside character classes. Removing those fixes the error in Chrome. I assume the other browsers ignore the useless escapes rather than die on them.

Edit, and here is the change currently live on the dev channel for Chrome
Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=535441
Intent to Ship: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/XUNMtri0tI4/qIsHgTWNAQAJ
Change: https://chromium.googlesource.com/chromium/src/+/bf29fb367d40c5b6fc9f41a1c268daa78e4aa031
Der Zoodirektor
23431 cr points
Send Message: Send PM GB Post
34 / M / Germany
Offline
Posted 6/7/16
So you are using a nightly build? This does not seem to happen on the stable builds.
21024 cr points
Send Message: Send PM GB Post
32
Offline
Posted 6/7/16
Nope, not on stable (dev is a weekly release, canary is nightly), I tested stable and it was fine. Also not demanding it be fixed right this instant either, it's just a heads up. I could have been clearer about that.

I can get around it by modifying the DOM anytime I need to login. But if you read the intent to ship this new feature is headed to stable and they are aware they will break some pages. It's pretty clear that the regular expression is malformed by strict strict standards neither PCRE or Posix regular expressions require underscore or the at sign to be escaped inside or outside character classes.

Also I just confirmed that Firefox Stable does alert about the issue in it's dev console, but lets it slide for now. Firefox says:
13:40:53.074 Unable to check <input pattern='([a-zA-Z0-9\-\_]{3,29})|(.+\@.+\..+)'> because the pattern is not a valid regexp: invalid identity escape in regular expression1 login

No reason not to fix it before it affects a larger demographic.
You must be logged in to post.