Closed flypenguin closed 1 year ago
on a hunch i tried a shorter password. works then. this is a bug, cause you should be shown the correct reason for the error.
Seems to pass password strength checks in frappe :thinking:
In [2]: test_password_strength("!NW4Ucun2^mmxt8SU%bsGd%4")
Out[2]:
{'password': '!NW4Ucun2^mmxt8SU%bsGd%4',
'guesses': 1000000000000000000000001,
'guesses_log10': 23.999999999999996,
'sequence': [{'pattern': 'bruteforce',
'token': '!NW4Ucun2^mmxt8SU%bsGd%4',
'i': 0,
'j': 23,
'guesses': 1000000000000000000000000,
'guesses_log10': 23.999999999999996}],
'calc_time': datetime.timedelta(microseconds=4709),
'crack_times_seconds': {'online_throttling_100_per_hour': Decimal('36000000000000001998401480.33'),
'online_no_throttling_10_per_second': Decimal('100000000000000000000000.1'),
'offline_slow_hashing_1e4_per_second': Decimal('100000000000000000000.0001'),
'offline_fast_hashing_1e10_per_second': Decimal('100000000000000.0000000001')},
'crack_times_display': {'online_throttling_100_per_hour': 'centuries',
'online_no_throttling_10_per_second': 'centuries',
'offline_slow_hashing_1e4_per_second': 'centuries',
'offline_fast_hashing_1e10_per_second': 'centuries'},
'score': 4,
'feedback': {'warning': '', 'suggestions': []}}
nvm it's custom function here: https://github.com/frappe/press/blob/de7061ec477332d7570d1fa842f6a67835219e6e/press/www/erpnext/signup.html#L217
the password strength checks internally validates for max 20 chars only. extended the limit to 35 chars https://github.com/frappe/press/commit/a43babf98894b3c4d1c82ebd2a55943184856370
Description of the issue
bad password registering dialog on frappecloud.com
Context information (for bug reports)
i don't know if this is configuration, but it's broken.
Steps to reproduce the issue
!NW4Ucun2^mmxt8SU%bsGd%4
Observed result
error message
Expected result
account signup
Additional information
firefox, the given URL above