jeudi 8 mars 2018

Is there a way to set a password strength for Firebase?

 const connect = auth.createUserWithEmailAndPassword(email,pass).catch(function(error){

          if(error.code === 'auth/weak-password'){
          errmsg.style.display = 'block';
          errmsg.style.opacity = '1';
          errmsg.innerHTML= 'The password is too weak.';
      }

With the default setting, the requirement for password is 6 characters (letter/number). Is there a way to change this (Ex. require password to be letter-number combined)>




Aucun commentaire:

Enregistrer un commentaire