Espurna: Can't set new password

Created on 27 May 2018  ยท  12Comments  ยท  Source: xoseperez/espurna

V1.12.17
new admin password:
Admin
Admin123
Admin123@

The password you have entered is not valid, it must have at least 5 characters, 1 lowercase and 1 uppercase or number!

duplicate staged for release web interface

Most helpful comment

This was fixed with ad623524f515ee6157eb3277d54a0a83e357a7cb. Staged for release.

All 12 comments

If you have build source,you have make one error in the setting file.

Same my error, i need reflash espurna with wire and serial adapter.

Regards

Il dom 27 mag 2018 10:20 88adong88 notifications@github.com ha scritto:

V1.12.17
new admin password:
Admin
Admin123
Admin123@

The password you have entered is not valid, it must have at least 5
characters, 1 lowercase and 1 uppercase or number!

โ€”
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/xoseperez/espurna/issues/895, or mute the thread
https://github.com/notifications/unsubscribe-auth/Aly0NARS5BPb3rbMeivCqGmIfcu9MC4Iks5t2mHEgaJpZM4UPMVa
.

Oops. I did mislead some people by mistaking it with hostname issue.
There's breaking change from https://github.com/xoseperez/espurna/commit/8a02c9fd6941e0e2035eb0fc7abf245ad8c14318#diff-35d45b13e9460cb72e90b29e1c6e56a0L145

new RegExp('...') must be escaped differently than /.../. idk if this was intended, but it should be like this:

@@ -142,7 +142,7 @@ function validateForm(form) {
-    var re_password = new RegExp('^(?=.*[A-Z\d])(?=.*[a-z])[\w~!@#$%^&*\(\)<>,.\?;:{}\[\]\\|]{5,}$');
+    var re_password = new RegExp('^(?=.*[A-Z\\d])(?=.*[a-z])[\\w~!@#$%^&*\\(\\)<>,.\\?;:{}\\[\\]\\\\|]{5,}$');

hello i hare rebuild with this change in custom.js file,
- var re_password = new RegExp('^(?=.[A-Z\d])(?=.[a-z])[w~!@#$%^&()<>,.\?;:{}[]\|]{5,}$');
+ var re_password = new RegExp('^(?=.
[A-Z\d])(?=.[a-z])[\w~!@#$%^&\(\)<>,.\?;:{}\[\]\\|]{5,}$');

@cent0

Attach files by dragging & dropping,

, or pasting from the clipboard.
Styling with Markdown is supported

and same problem not working new password

i have build espurna-dev.zip code for sonoff pow interface

have changed platformio.ini
this line
env_default = itead-sonoff-pow

in sensor.h
this line

define SENSOR_POWER_CHECK_STATUS 0

login work ok and password pdate have this problem
The password you have entered is not valid, it must have at least 5 characters, 1 lowercase and 1 uppercase or number!

regards

My constatation is this,

If reprogramming by wire and not have erased successfully the flash, not
working the change password,
I have test and and problem is not fixed.

I have resolved in this mode:

1-Reprogramm with 1.12.4 set new password.
2-Update 1.12.4 by web in the admin menu, with my building version 1.12.7a
with source dev .

Best regards.

Your other have found this problem ?

Il dom 27 mag 2018 11:37 Max Prokhorov notifications@github.com ha
scritto:

Oops. I did misled some people with mistaking it with hostname issue.
There's breaking change from 8a02c9f

diff-35d45b13e9460cb72e90b29e1c6e56a0L145

https://github.com/xoseperez/espurna/commit/8a02c9fd6941e0e2035eb0fc7abf245ad8c14318#diff-35d45b13e9460cb72e90b29e1c6e56a0L145

new RegExp('...') must be escaped differently than /.../. idk if this was
intended, but it should be like this:

@@ -142,7 +142,7 @@ function validateForm(form) {- var re_password = new RegExp('^(?=.[A-Z\d])(?=.[a-z])[w~!@#$%^&()<>,.\?;:{}[]\|]{5,}$');+ var re_password = new RegExp('^(?=.[A-Z\d])(?=.[a-z])[\w~!@#$%^&\(\)<>,.\?;:{}\[\]\\|]{5,}$');

โ€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/xoseperez/espurna/issues/895#issuecomment-392318106,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Aly0NBlU7YL4dnYvMzY7SwSTpG5FIxizks5t2nPfgaJpZM4UPMVa
.

@cent0 Maybe your email client does something to the formatting? Check the message in the web, there is link in the email's footer.
https://jsfiddle.net/ry6qvqux/ - testing regexp, it works

And you could've used serial connection to set it, no need to re-flash :) set adminPass Admin123

Tested Admin1234@ Not working
And tested more password
Espurna12
Espurna12@
not apply and not working ๐Ÿ˜ ๐Ÿ˜ 

I have like your post and script

A this time i have solved and bypass the problem with my pleasure and i
have this Password ๐Ÿ˜€
Admin123

Programm with old version change password
Reprogramm with 1.12.7a
And have Fixed password,

If you reset interface is impossibile save new password,
You have login with fibonacci
And new password is not settable.๐Ÿ˜ ๐Ÿ˜ ๐Ÿ˜ˆ

Il dom 27 mag 2018 19:43 Max Prokhorov notifications@github.com ha
scritto:

@cent0 https://github.com/cent0 Maybe your email client does something
to the formatting? Check the message in the web, there is link in the
email's footer.
https://jsfiddle.net/ry6qvqux/ - testing regexp, it works

And you could've used serial connection to set it, no need to re-flash :) set
adminPass Admin123

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/xoseperez/espurna/issues/895#issuecomment-392350286,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Aly0NFEFOc7bcH6miZZSlLWdX1oQKGuaks5t2uXagaJpZM4UPMVa
.

https://github.com/xoseperez/espurna/wiki/WebInterface#web-interface-build-process
just changing index.html/custom.js would not suffice, you need to run gulp too.

I have build with atom Platformio. And not work

I have wrong setting, and have compiled with error?
Do you have guide for compiling setting?

@cent0 Check the link. Install node + gulp and run it via built-in terminal.

I have contourned the problem by flashing an older version of espurna and upgraded in the web interface with the last version.

If that can help you

This was fixed with ad623524f515ee6157eb3277d54a0a83e357a7cb. Staged for release.

Also, see #879

Was this page helpful?
0 / 5 - 0 ratings

Related issues

namezero picture namezero  ยท  7Comments

mstjerna picture mstjerna  ยท  6Comments

vaidyasr picture vaidyasr  ยท  10Comments

Cabalist picture Cabalist  ยท  8Comments

pidiet picture pidiet  ยท  7Comments