beat wrote:
I'm really looking for a checking which can be done indendantly in javascript without server communication, and exactly the same implementation available in PHP for server-side check upon submit.
In my opinion the server side check is good enough.
The password is checked on the server and if it is not good enough the registration page appears again with a red-marked password field and a notification what is missing, e.g.
Attention:
- no special char used (use min. one special character in password)
- password too short (use 6 chars min.)
It does not make sense to implement javascript checks ONLY, since these checks can be bypassed in a very easy way. Nevertheless these checks might be useful in combination with the server side checking, but they are not really necessary.
The component WebTrooper found seems to do exactly what is needed here except it does not check the first time password from the registration page (unfortunately this is in most cases the only password a user uses).
Password expiration can be saved in CB tables, so no modification of the Jommla user table is required (the component modifies the user table for this which is not a good idea).