Post Reply Bug in code making Login not work
5 cr points
Send Message: Send PM GB Post
Offline
Posted 6/10/16
I found that i couldn't login because it said that my vary valid account ([email protected]) was, well, invalid.

So I looked into the code seeing if i could bypass it (found you cant just edit any code you like) and found this:

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

Witch is a reference to this line of code on line : 212 : of your login file in Source code:

<p><label for="login_form_name" class="required"><span class="label-text">Email or User Name</span><input type="text" id="login_form_name" name="login_form[name]" required="required" id="login_email_username" tabIndex="1" pattern="([a-zA-Z0-9\-\_]{3,29})|(.+\@.+\..+)" data-pattern-mismatch-message="Please use a valid email or username."/></label></p>

and as such the only thing I see when trying to login is "Please use a valid email or username" when i am.

Please swiftly fix this if you could but do know i can still login on my IPad so i can still watch your videos but i would like to watch them on my PC. Thank you for you time.

Der Zoodirektor
23405 cr points
Send Message: Send PM GB Post
34 / M / Germany
Offline
Posted 6/10/16 , edited 6/10/16

NeedHelpFromCrunchyroll wrote:

I found that i couldn't login because it said that my vary valid account ([email protected]) was, well, invalid.

So I looked into the code seeing if i could bypass it (found you cant just edit any code you like) and found this:

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

Witch is a reference to this line of code on line : 212 : of your login file in Source code:

<p><label for="login_form_name" class="required"><span class="label-text">Email or User Name</span><input type="text" id="login_form_name" name="login_form[name]" required="required" id="login_email_username" tabIndex="1" pattern="([a-zA-Z0-9\-\_]{3,29})|(.+\@.+\..+)" data-pattern-mismatch-message="Please use a valid email or username."/></label></p>

and as such the only thing I see when trying to login is "Please use a valid email or username" when i am.

Please swiftly fix this if you could but do know i can still login on my IPad so i can still watch your videos but i would like to watch them on my PC. Thank you for you time.



Strictly speaking it is a side effect of you using a dev/canary version of Chrome. Even if characters that do not need escaping are escaped, the browser should not break. That's currently not the case for the unstable versions of Chrome (hence they are "unstable").

Our devs have already adjusted the code, it should be released in the next code update for the website.
You must be logged in to post.