Skip to main content
Topic: Bug in registration script when password strength is above lowest setting (Read 2572 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Bug in registration script when password strength is above lowest setting

When I have the password strength setting at medium I get a javascript error as follows at the second registration screen.

TypeError: this.verificationFields.i is undefined
$boardurl/themes/default/scripts/register.js?10beta2
Line 165

I see this in firefox with Firebug.

Re: Bug in registration script when password strength is above lowest setting

Reply #1

 emanuele blames... Norv. :P

In register.js:
Code: (find) [Select]
if (this.verificationFields.i[4] === 'reserved' && this.verificationFields.i[1].value && curPass.indexOf(this.verificationFields.i[1].value) !== -1)
Code: ("replace with") [Select]
if (this.verificationFields.[i][4] === 'reserved' && this.verificationFields.[i][1].value && curPass.indexOf(this.verificationFields.[i][1].value) !== -1)
Bugs creator.
Features destroyer.
Template killer.

Re: Bug in registration script when password strength is above lowest setting

Reply #2

Still errors (two now), perhaps you meant this?

Quote from: emanuele –
 emanuele blames... Norv. :P

In register.js:
Code: (find) [Select]
if (this.verificationFields.i[4] === 'reserved' && this.verificationFields.i[1].value && curPass.indexOf(this.verificationFields.i[1].value) !== -1)
Code: ("replace with") [Select]
if (this.verificationFields[i][4] === 'reserved' && this.verificationFields[i][1].value && curPass.indexOf(this.verificationFields[i][1].value) !== -1)

Re: Bug in registration script when password strength is above lowest setting

Reply #3

No, the "me blames Norv" is just a joke that I use from time to time, just kidding. ;)

On the error, it's odd, it seemed to fix it here. I'll do some more test.

Yes, you are right...I tested it correctly, then I undo the changes to make the post here and applied again the "fix" in the wrong way... :-[

Sorry, you are right!
Bugs creator.
Features destroyer.
Template killer.



Re: Bug in registration script when password strength is above lowest setting

Reply #6

Ops... :P

Will revert and push -f

 emanuele should pull the repo more frequently (and rebase the branches).
Bugs creator.
Features destroyer.
Template killer.