Mimickal / FunboxUsers

A lightweight user account system
1 stars 0 forks source link

Password string validator #56

Open ShellyHerself opened 5 years ago

ShellyHerself commented 5 years ago

Right now when we ask a user to put in a new password we're only checking if the field exists in the form. We are not however checking if the password strings are empty or if the password matches up to the requirements that the server may have set.

We should create a function to validate passwords based on settings that the admin can configure. And use this whenever a user creates a new password.

Examples would be:

Mimickal commented 5 years ago

Leaving this open for now because we may revisit more strict password enforcement in the future