Guest User

Untitled

a guest
Jul 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. yiibaseSecurity::validatePassword('123qweASD', '46e44aa0bc21d8a826d79344df38be4b')
  2.  
  3. if (!preg_match('/^$2[axy]$(dd)$[./0-9A-Za-z]{22}/', $hash, $matches)
  4. || $matches[1] < 4
  5. || $matches[1] > 30
  6. ) {
  7. throw new InvalidArgumentException('Hash is invalid.');
  8. }
Add Comment
Please, Sign In to add comment