This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// put this code in application/bootstrap/app.php | |
$app->extend( | |
'validator/password', | |
function ($manager) use (&$app) { | |
// the following pattern checks for at least 1 lowercase letter, 1 uppercase letter, 1 number and 1 symbol | |
// (?=.*[a-z]) stands for lowercase letters | |
// (?=.*[A-Z]) stands for uppercase letters | |
// (?=.*[0-9]) stands for numbers | |
// (?=.*\W) stands for symbols |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |