accounting/database/dbPermission/user/userLogic.js
// declare a function used to check if the password has a number in it. 
declare a function used to check if the password has a number in it.
declare a function used to check if the password has a number in it .
function passwordHasNumber (password) 
    { 
      let str = String(password); 
      for( let i = 0; i < str.length; i++) 
      { 
        if(!isNaN(str.charAt(i))) 
        { 
          return true; 
          break; 
        } 
      } 
      return false; 
    }
function passwordHasNumber ( password ) { let str = String ( password ) ; for ( let i = 0 ; i < str . length ; i ++ ) { if ( ! isNaN ( str . charAt ( i ) ) ) { return true ; break ; } } return false ; }
declare a function used to check if the password has a number in it.
declare a function used to check if the password has a number in it .